Re: Dynamically creating submit buttons, how to call submit methods?

2009-09-11 Thread Stephan Windmüller
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

Re: Dynamically creating submit buttons, how to call submit methods?

2009-09-11 Thread Stephan Windmüller
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:

Dynamically creating submit buttons, how to call submit methods?

2009-09-10 Thread Stephan Windmüller
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

Re: Dynamically creating submit buttons, how to call submit methods?

2009-09-10 Thread Thiago H. de Paula Figueiredo
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