This content has been marked as final.
Show 3 replies
-
1. Re: RichFaces 4: how to pass clicked row to managed bean?
ma.aqcon Sep 23, 2011 10:05 AM (in response to ma.aqcon)Hi again,
I found a workaround that does the job...
<rich:dataTable binding="#{general.dataTable}" value="#{general.rows}" var="row" id="table" onrowclick="#{rich:element('detail')}.click();"> <rich:column style="visibility: hidden;"> <a4j:commandButton id="detail" action="#{generalMaintenance.loadObject}" render="toggle" execute="@this"> <f:setPropertyActionListener target="#{generalMaintenance.object}" value="#{row}"/> </a4j:commandButton> </rich:column> </rich:dataTable>
If anyone has a better solution, please let me know! Thanks!
Regards,
Michael
-
2. Re: RichFaces 4: how to pass clicked row to managed bean?
mp911de Sep 23, 2011 5:44 PM (in response to ma.aqcon)1 of 1 people found this helpfulHi Michael,
lookup your DataTable from the ViewRoot and then DataTable.getRowData()
Best regards,
Mark
-
3. Re: RichFaces 4: how to pass clicked row to managed bean?
ilya_shaikovsky Sep 24, 2011 2:08 PM (in response to ma.aqcon)http://community.jboss.org/thread/164648?tstart=0- many good pointers there.
Short overview: without any bindings and any server-side look-up stuff you should be able to pass row id using var to jsFunction as a parameter (jsFunction should be used instead of ajax in that case).