So, i am trying to break out of tapestry loop here.
This is my -more or less- simplified scenario:
<ul>
<t:loop source="firstSource" value="firstValue">
<li>
<t:loop source="firstValue" value="secondValue">
<p>${secondValue}</p>
</t:loop>
<t:loop source="secondSource" value="thirdValue">
<p>${thirdValue}</p>
</t:loop>
</li>
</t:loop>
</ul>
What I do not want to have is: Tapestry loops through all entries in
firstValue - then loops through all entries in secondSource. I do not want
to iterate through secondSource inside the loop of fristValue as this would
iterate through all entries in secondSource - and I just want to do 1
iteration at a time.
What I want to have is: Tapestry enters the loop for firstValue and does
some printing or whatever, then breaks after the first iteration and jumps
into secondSource to do the first iteration . After it has finished it jumps
back to firstValue and repeats these steps. This is what in Java the
"break;" would do.
I did not find a clue in the Tapestry documentation on how to do this, nor
in the forums.
But it has to be possible in some way. I can not imagine I am the only one
trying to do this.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/HowTo-break-out-of-a-Tapestry-loop-tp5713658.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]