-
1. Re: Submitting row contents in datatable
ilya_shaikovsky Mar 16, 2009 8:30 AM (in response to wark2007)Sorry but can't get the problem :/ All the changes should passed to model items just after button click.. Or I miss something?
-
2. Re: Submitting row contents in datatable
rschoeler Mar 16, 2009 10:32 AM (in response to wark2007)Hello wark2007, one possible way is to use a4j:support alone or in combination with f:setPropertyChangeListener (JSF 1.2), or use a4j:commandLink etc.
I write this examples only out from my mind - therefore semantic failures are possible (only show you possible ways to go....8-})!
VAR 1 - only a4j:support
<a4j:support event="onclick" actionListener="#{YOURBEAN.processMETHOD}" reRender="YOUR-TABLEID" eventsQueue="USE_OR_NOT"/>
VAR 2 - var contains the OID of the changedtable and target contains the variable of the BEAN, which store the OID.....during work of the action-Method you can take this OID of the row to do your saving stuff
<a4j:support event="onclick" reRender="YOUR-TABLEID">
<f:setPropertyChangeListener var="SOURCE" target="target" />
</a4j:support>
VAR 3: direct usage of a4j:commandLink
regards
rschoeler