Hi!
I am looking to call a function from my bean into my jsp page.
For example:
- Bean class: Users
- Bean class: X
- in this class X I have the function: getHobbies(username)
- in my jsp page I get all users nodes and I want to display each user with
the list of his hobbies thanks to this function getHobbies, please would you
mind telling me if it is possible? I was thinking of something like this:
<a:richList id="users-list" binding="#{UsersBean.usersRichList}"
viewMode="details" pageSize="10"
styleClass="recordSet" headerStyleClass="recordSetHeader"
rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{Users.users}" var="b" initialSortColumn="userName"
initialSortDescending="true">
<h:selectOneMenu id="hobbies" style="width:150px" >
<f:selectItems actionListener="#{X.getHobbies(b.username}" />
-->how to call the function
here
</h:selectOneMenu>
Thanks
Best
Sophie