This content has been marked as final.
Show 3 replies
-
1. Re: Ajax form in each table row - only the one in last row w
akakunin Jan 21, 2008 3:51 AM (in response to dkane)Confirmed, we meet same problem with a4j:repeat - then form is included inside a4j:repeat
-
2. Re: Ajax form in each table row - only the one in last row w
brachie Jan 23, 2008 3:19 AM (in response to dkane)Hi,
I am having the same problem with a <a:commandLink> in a table:<tr:table styleClass="trTableDiv" id="personss" rows="10" columnClasses="col" value="#{allePersonen}" var="pers"> <tr:column> <f:facet name="header">Name</f:facet> <h:outputText value="#{pers.vorname} #{pers.nachname}" /> </tr:column> <tr:column> <f:facet name="header">select</f:facet> <a:commandLink reRender="panelProjekt" action="#{projekt.setMandant(pers)}" value="set"> <s:conversationId /> </a:commandLink> </tr:column> </tr:table>
When I click the commandLink only the last person in the table is passed to the action-Method #{projekt.setMandant(pers)}.
Any suggestions?
Regards,
Alexander -
3. Re: Ajax form in each table row - only the one in last row w
dkane Jan 23, 2008 3:59 AM (in response to dkane)brachie,
My current workaround is following.
When a:form is around the whole datatable (but a:commandlink is in each table row) I have all fields from all rows submitted. Then I have to know which exact row has been clicked, in order to throw out unnecessary form parameters come from other rows. This could be done by passing some id or so with a:actionparam.
Ugly solution, of course. Waiting for answer/fix to have small a:form in each row.