Hi,
I am having some trouble with IDs generated for anonymous components.
Here is my situation:
I created a simple component (based on basecomponent) that will render
a pop up menu. If I put 3 instances of this component directly inside
a page, I get three unique ids (as I expected). However, if I nest the
component within a FOREACH component (that has 3 iterations), I get
the same ID 3 times. Is this how it´s supposed to work? I´m fairly new
to tapestry, so I may have misunderstood the way component IDs are
supposed to work. Here are the relevant pieces from the templates:
THIS WORKS, RENDERING IDS: $MenuTemp$0, $MenuTemp$1, $MenuTemp$3:
<span jwcid="@MenuTemp" /><br>
<span jwcid="@MenuTemp" /><br>
<span jwcid="@MenuTemp" /><br>
THIS RENDERS IDS: $MenuTemp, $MenuTemp, $MenuTemp
<span jwcid="@Foreach" source="ognl:listOfStuff" >
<span jwcid="@MenuTemp" /><br>
</span>
The listOfStuff is just a static arraylist with 3 elements.
The MenuTemp component does not have a JAVA class. Here is the
relevant code in the specification:
<component-specification class="org.apache.tapestry.BaseComponent"
allow-body="yes"
allow-informal-parameters="yes">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]