1st... I think you should be using @For (Tapestry 4 - only, of course)
instead of @Foreach...
You can separate the @For from the real div. For example:
<span jwcid="@For" source="parents" value="ognl:parent">
<div jwcid="@Any" id="parent.id">
</div>
<span jwcid="@For" source="parent.children" value="ognl:child">
<div jwcid="@Any" id="child.id">
</div>
</span>
</span>
;)
Cosmin Bucur wrote:
I want to do an inner loop with forEach with for . But I see that both
take the argment of a html element .
So if I were to have :
<div jwcid="@Foreach" source="ognl:parents" value="ognl:parent"
element="div" id="parent">
<span jwcid="DirectLink" listener="ognl:listeners.parentClick"
parameters="ognl:parent.id" />
<div jwcid="@Foreach" source="ognl:parent.children" value="ognl:child"
element="div" id="child">
<span jwcid="DirectLink" listener="ognl:listeners.childClick"
parameters="ognl:child.id" />
</div>
</div>
where in css a parent would have a white bkg , black border and child
would have red bkg and blue border ...
The list of children divs would list inside the white bkg and black
border , when I would like to have all elements in the list on their
own , of the same size but different color background depending if
child or parent ...
How can I do this kind of thing with tapestry ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]