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: http://w

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

2009-09-11 Thread Stephan Windmüller
Thiago H. de Paula Figueiredo wrote: >> >> >> >> 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

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 escreveu: Hello! Hi! 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. -- Thiago H. de

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: This will not work, the id has to be unique. But how do I dynamically generate submit buttons and