Question: Is it possible to call two methods from the Bean to a JSF page within one primefaces component? I have `listOfNames()` and `detailsOfName()` methods in the Bean. The two methods return `List` types.

In a `<p:dataGrid>`, is it possible to obtain the values from both the methods?

Answer: 
You can't invoke multiple properties. Just merge the both lists into one list and return it instead.

E.g.

```
List<String> listOfEverything = new ArrayList<String>();
listOfEverything.addAll(listOfNames);
listOfEverything.addAll(detailsOfName);

```

Keep in mind that [you should not be doing business job in getter methods](https://stackoverflow.com/questions/2090033/why-jsf-calls-getters-multiple-times/2090062#2090062). Do the preparing job in bean's (post)constructor or (action)listener method depending on whether you need this on a GET or POST request.
I would do it the way BalusC proposed, but would also introduce the ability to separate the two lists back, if needed, in your view, or elsewhere, thus returning either `List<List<String>>`, or `Map<String, List<String>>`, which is

```
    List<List<String>> unitedList = new ArrayList<List<String>>();
    unitedList.add(listOfNames);
    unitedList.add(detailsOfName);

```

or

```
    Map<String, List<String>> unitedMap = new HashMap<String, List<String>>();
    unitedMap.put("listOfNames", listOfNames);
    unitedList.add("detailsOfName", detailsOfName);

```