Is there a way to display a specific JSF page based on the request URL?
Let's say I have a JSF page "details.xhtml
". The managed bean "detailsBean
" has a list of objects where each object has its own ID. Now if a user requests the page "../details.xhtml?id=1
", the list should be queried for an object with ID 1 and the resulting details page of this object should be displayed.
I already wrote a converter implementation class which can convert from object to ID and vice versa, but I don't know how to use it properly. Do I have to work through the JAX-RS specification for this to work or is there a more simple solution?