jsf 2 - Calling two Bean methods in JSF -
is possible phone call 2 methods bean jsf page within 1 primefaces component? have listofnames()
, detailsofname()
methods in bean. 2 methods homecoming list
types.
in <p:datagrid>
, possible obtain values both methods?
you can't invoke multiple properties. merge both lists 1 list , homecoming instead.
e.g.
list<string> listofeverything = new arraylist<string>(); listofeverything.addall(listofnames); listofeverything.addall(detailsofname);
keep in mind you should not doing business job in getter methods. preparing job in bean's (post)constructor or (action)listener method depending on whether need on or post request.
jsf-2 primefaces
No comments:
Post a Comment