Hi,
I asked this before but couldn't resolve the issue based on the
information that Taha forwarded me.
(http://tapestry.1045711.n5.nabble.com/loops-zones-and-encoders-td4425814.html#a4425945)
I have a loop that creates textareas within a form. Each textarea is
wrapped by a zone. Outside the loop is a submit button to save the form.
No matter whether I set the submit defer attribute to false or true, my
code only persists the information of the last texarea in the loop.
That's how the form part of the tml looks like:
<t:form>
<t:loop t:id="criteria" value="currentCriteria" source="criteria"
encoder="cEncoder">
<t:zone t:id="textareaZone">
<t:textarea value="textareaValue" />
</t:zone>
</t:loop>
<t:submit value="Save" t:id="save"/>
</t:form>
The odd thing is that the encoder (cEncoder) for the loop gets called n
times before the setter of the currentCriteria field gets called n
times. Removing the zone brings back the normal behaviour of calling
first the encoder and second, the setter of the corresponding field.
Any hints and pointers to fix this are much appreciated.
Regards,
Alex
--
DI(FH) Alexander Rosemann
open source based software solutions
Naunspitzweg 3 | 6341 Ebbs | Austria
mobile: +43-681-10337082 | email: alexander.rosem...@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org