Hi,
I have two facelet-pages: customers.xhtml (with a list of customers) and customer.xhtml for detail-view of just one customer. I use a h:dataTable component inside the customers.xhtml:
<h:dataTable var="customer" value="#{customerBackingBean.customers}">...</h:dataTable>
Now I want to create a hyperlink for each customer in the table. The hyperlink should navigate to the customer.xhtml . Each customer has a property primaryKey
, which should tell the customer.xhtml whish customer should be displayed.
How do I do this? How does it work, if I use two different backing-beans for each facelet-page?
Thanks in advance.