Re: Dynamically add fields to form

2013-05-08 Thread Nathan Quirynen
On 07/05/13 16:07, Lance Java wrote: Perhaps, as George mentioned, this is better handled by a single form with two submit buttons. You can use the onSelectedFromX() event to flag which submit button was pressed. Hey, I fixed my problem using an AjaxFo

Re: Dynamically add fields to form

2013-05-07 Thread Lance Java
Perhaps, as George mentioned, this is better handled by a single form with two submit buttons. You can use the onSelectedFromX() event to flag which submit button was pressed.

Re: Dynamically add fields to form

2013-05-07 Thread Nathan Quirynen
Hi, I'm trying this now, but I'm already stuck on rendering the FormInjector. Form A is submitted with ajax, then I want to rerender a zone containing the FormInjector. This always results in: No object of type org.apache.tapestry5.servi

Re: Dynamically add fields to form

2013-05-03 Thread Lance Java
Disclaimer: I've never used FormInjector before I *think* you can do this but it will require a little trick. The FormInjector adds a trigger() function to it's DOM element. The trigger() function fires a serverside event passing the "context" attribute. In your use case, the context is not known

Re: Dynamically add fields to form

2013-05-03 Thread George Christman
Hi Nathan, any particular reason your trying to use two forms? On Fri, May 3, 2013 at 3:59 AM, Nathan Quirynen wrote: > Hi, > > I have in one of my pages the following: > > --Form A > | Add item > > > --Form B > |--Zone A > | | Item1 > | | Item2 > |- > |Some o

Dynamically add fields to form

2013-05-03 Thread Nathan Quirynen
Hi, I have in one of my pages the following: --Form A | Add item --Form B |--Zone A | | Item1 | | Item2 |- |Some other form fields On success from Form A, Zone A gets updated and the new item added shows up in Form B. In Zone A each item has a sele