primefaces - Passing parameter between two pages without using the url in JSF and session's variable -
i have page object.xhtml display list of objects. want click on 1 object , show details on page. don't want pass parameter via url or using session's variable.
assuming using p:datatable
can create column redirect edit page:
<p:column headertext="action"> <p:commandlink ajax="false" title="edit" action="target.xhtml" value="edit"> <f:param name="objectid" value="#{object.id}" /> </p:commandlink> </p:column>
and in backing bean can utilize parameter this:
facescontext context = facescontext.getcurrentinstance(); string objectid = context.getexternalcontext() .getrequestparametermap().get("objectid");
jsf primefaces
No comments:
Post a Comment