On Sat, 26 Apr 2014 09:17:10 -0300, Semen Vishniakov <vishnyako...@gmail.com> wrote:

Hi all!

Hi!


I have a loop within zone:

<t:zone t:id="answersZone" id="answersZone">
<t:loop source="csCustomerSurvey.csAnswers" value="csAnswerCurrent">
            <cs:csAnswerComponent t:csAnswer="csAnswerCurrent"/>
        </t:loop>
</t:zone>

Remember: the value property of the Loop component is only valid while rendering. Events are done in a different request, so the value is lost (and it should, otherwise you need some ugly stuff like Tapestry 4's rewind phase or JSF).

The solution for your specific case would be to pass the current loop variable value in the event context, but I don't think this was implemented yet. Until then, you'll need to write some JavaScript and not use the valueChanged event of Select.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to