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
Stephan Windmüller wrote:
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.
Hm, the above behaviour might be related to this thread:
Hello!
On a page I am looping over a list of objects. In each iteration I want
to place a button which calls an action upon the iterated object.
So basically I have something like this:
t:loop t:source=objetcs t:value=current t:formState=iteration
t:submit t:id=toggleState
Em Thu, 10 Sep 2009 09:11:55 -0300, Stephan Windmüller
stephan.windmuel...@cs.tu-dortmund.de escreveu:
Hello!
Hi!
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