This content has been marked as final.
Show 1 reply
-
1. Re: modalPanel and dataTable
ma.aqcon Dec 23, 2008 1:56 AM (in response to gzoller)Not a complete example, but this might help you ...
Define an <a4j:support> onRowClick event trigger, pass a key value of the selected line to a backing bean value (f:setProperty...)<rich:dataTable id="attributes" value="#{bean.list}" var="line"> <a4j:support event="onRowClick" reRender="attGrid" action="#{bean.loadSelectedRow}" oncomplete="Richfaces.showModalPanel('attributeDetail',{width:300, height: 100, top:150});"> <f:setPropertyActionListener target="#{bean.selectedRowAttID}" value="#{line.attributeNumber}" /> </a4j:support> ... </rich:dataTable>
Regards,
Michael