I have t:ajaxformloop iterating over a property and t:submit using context
values from the loop. Code looks like:
@Property
private SomeType iteratedValue;
void onSelectedFromDoSomething ( SomeType iteratedValue ) {
// some stuff depends on iteratedValue here
}
----
<t:zone t:id="zoneName">
<t:ajaxformloop p:source="source" p:value="iteratedValue">
<!-- some code here -->
<t:submit t:id="doSomething" p:context="iteratedValue" p:zone="zoneName"/>
<!-- some code there -->
</t:ajaxformloop>
</t:zone>
At the time of submit iteratedValue *always* contains last iterated value
from the loop. Apparently I'm getting wrong results in the end: no matter
where submit was clicked, handler always receives the value from the last
loop iteration. Any hints how to fix this?
--
Ilya Obshadko