Thiago H. de Paula Figueiredo wrote: >> <t:loop t:source="objetcs" t:value="current" t:formState="iteration"> >> <t:submit t:id="toggleState" t:context="current"/> >> </t:loop> >> This will not work, the id has to be unique. > You could annotate your event handler method with > @OnEvent(EventConstants.SELECTED) and use the context to disambiguate > between them.
I tried it and at first all seemed work. But then I recognized that each time the system behaves like I pressed the _last_ button. The context is always the same, regardless of which button I press. My code: <input t:type="submit" t:context="[firstObject, secondObject]"/> @OnEvent(EventConstants.SELECTED) public void onSelectedFromEditButton(Object1 first, Object2 second) { ... } Regards Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org