-
1. Re: Unable to select row in rich:datatable using rich faces
ilya_shaikovsky Apr 8, 2009 9:37 AM (in response to gangadhar_nitta)JSF specification related question. actionparam works as listener, and according to spec ation/actionListener of the component called before listeners of the children. So remove action definition from support and define actionListener on parameter component.
-
2. Re: Unable to select row in rich:datatable using rich faces
gangadhar_nitta Apr 8, 2009 9:56 AM (in response to gangadhar_nitta)Thanks for your response and I tried like below code.
But still I am facing same problem.
Please correct me if I did wrong. I think a4j:support is not working.
------------------------------------------------
------------------------------------------------
<rich:dataTable id="searchdatatable"
value="#{list}" var="listSearch"
rendered="#{list.rowCount>0}"
>
<a4j:support event="onclick"
actionListener="#{listAction.select}"
reRender="listpanel">
<a4j:actionparam
assignTo="#{list.listID}"
name="listform:RowId"/>
</a4j:support>
------------------------------------------------------
--------------------------------------------------- -
3. Re: Unable to select row in rich:datatable using rich faces
ilya_shaikovsky Apr 8, 2009 9:58 AM (in response to gangadhar_nitta)again... move the listener definition from support tag to parameter tag.
-
4. Re: Unable to select row in rich:datatable using rich faces
gangadhar_nitta Apr 8, 2009 10:06 AM (in response to gangadhar_nitta)Thanks for your immediately response and tried like below code.
But still I am facing same problem.
Please correct me if I did wrong.
------------------------------------------------
------------------------------------------------
<rich:dataTable id="searchdatatable"
value="#{list}" var="listSearch"
rendered="#{list.rowCount>0}"
>
<a4j:support event="onclick"
reRender="listpanel">
<a4j:actionparam actionListener="#{listAction.select}"
assignTo="#{list.listID}"
name="listform:RowId"/>
</a4j:support>
------------------------------------------------------
--------------------------------------------------- -
5. Re: Unable to select row in rich:datatable using rich faces
gangadhar_nitta Apr 8, 2009 10:15 AM (in response to gangadhar_nitta)Once we click on any row in rich:datatable , that corresponding data will be displayed in next screen. This functionality was worked with richfaces 3.1.2. But same thing is not working with richfaces 3.2. 2.SR1.
-
6. Re: Unable to select row in rich:datatable using rich faces
gangadhar_nitta Apr 8, 2009 10:54 AM (in response to gangadhar_nitta)Please provide the help on this. It is little bit urgent
-
7. Re: Unable to select row in rich:datatable using rich faces
mvitenkov Apr 9, 2009 11:46 AM (in response to gangadhar_nitta)Gangadhar_nitta,
as I know, if you use "assignTo" in a4j:actionparam, "value" should be defined too, like this:<rich:dataTable id="searchdatatable" value="#{dataTable.mounths}" var="listSearch" rowKeyVar="rowKey"> <a4j:support event="onclick" reRender="listpanel"> <a4j:actionparam assignTo="#{dataTable.selectedRow}" value="#{rowKey}" name="rowMounth" actionListener="#{dataTable.select}"></a4j:actionparam> </a4j:support> <rich:column> <h:outputText value="#{listSearch.mounth}" /> </rich:column> <rich:column> <h:outputText value="#{listSearch.town}" /> </rich:column> <rich:column> <h:outputText value="#{listSearch.total}" /> </rich:column> </rich:dataTable> <rich:panel id="listpanel"> <h:outputText value="#{dataTable.selectedRow}" /> </rich:panel>
Could you please attach your full page and backing beans code?
Thanks for the participation. -
8. Re: Unable to select row in rich:datatable using rich faces
gangadhar_nitta Apr 10, 2009 1:44 AM (in response to gangadhar_nitta)Thanks to everyone, i got the solution for this issue :-)
I used onRowClick event in a4j:support.
Regards,
Gangadhar Nitta