Hello everyone. Is it possible to have multiple AjaxFormLoops on a single page. I was reading some messages in this mailing list and saw that people use nested AjaxFormLoop, but they didn't tell how they do it. :)
However, I do not need nested AjaxFormLoop. I just need two of them outside one another. :) My problem boils down to this. How to control which one of the event listeners will be called by which AjaxFormLoop. For example: <div t:type="AjaxFormLoop" t:source="FIRSTS" t:value="FIRST" t:encoder="FIRSTdataenc" t:context="FIRSTDATA"> <t:unless t:test="blabla"> <t:submitnotifier> <input t:type="TextField" t:id="data" t:value="something.data"/> <t:removerowlink>Remove</t:removerowlink> </t:submitnotifier> </t:unless> <p:addRow> <t:addrowlink>Add</t:addrowlink> </p:addRow> </div> <div t:type="AjaxFormLoop" t:source="SECONDS" t:value="SECOND" t:encoder="SECONDdataenc" t:context="SECONDDATA"> <t:unless t:test="blablabla"> <t:submitnotifier> <input t:type="TextField" t:id="somedata" t:value="something.data"/> <t:removerowlink>Remove</t:removerowlink> </t:submitnotifier> </t:unless> <p:addRow> <t:addrowlink>Add</t:addrowlink> </p:addRow> </div> And in java: FirstData onAddRow(FirstData fd) { ... } void onRemoveRow(FirstData fd) { ...} SecondData onAddRow(SecondData fd) { ... } void onRemoveRow(SecondData fd) { ...} My ValueEncoders are OK (I've checked them with using only one AjaxFormLoop at a time). So, my question would be: is having multiple AjaxFormLoops even possible, and if it is, how to tell them to call proper event handlers? I've given them t:id too, but didn't know what to do with it. Any help would be greatly appreaciated. Thanks, Tomislav ps.... and sorry for my broken English, but at least I try. :) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org