I'm learning JSF/JPA by creating a virtual bank website. I have some Clients
, who have many Accounts
.
So I tried this:
<h:selectOneMenu>
<f:ajax/>
<f:selectItems value="#{loginMBean.client.accountsList}"
var="c"/>
</h:selectOneMenu>
<h:outputText value="${c.numAccount}" />
While this perfectly displays the list of accounts, it doesn't print the number of the account, even when I change the value of the select box. What am I doing wrong?