-
1. How to set parameter at page scope
ilya40umov Mar 6, 2011 3:14 PM (in response to satyakatti)You can pass a parameter within your request by using a4j:actionparam and you don't need to assign it to any variable in a bean because you can simply read any of request parameters from FacesContext. But in this case you will need to handle selection by your self.
-
2. How to set parameter at page scope
satyakatti Mar 6, 2011 11:22 PM (in response to ilya40umov)Hi,
Handling the selection means I cant use SimpleSelection for the table?
In such case should I have to manually handle the row clicked events by some scripts?
It would be helpful if you can provide some examples.
Regards,
Satya
-
3. How to set parameter at page scope
ilya40umov Mar 7, 2011 12:07 AM (in response to satyakatti)You should add somthing like this to your dataTable
<rich:dataTable>
<a4j:support action="#{bean.select}" event="onRowClick">
<a4j:actionparam name="itemId" value="#{currentItem.id}"/>
</a4j:support>
</rich:dataTable>
and then process parameter itemId from request in your bean.select method.