On 07/05/13 16:07, Lance Java wrote:
Hey,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. I fixed my problem using an AjaxFormLoop in Form B: 1) Form A submit adds a new item to the collection and using _javascript_Support calls trigger() on the FormInjector inside the AjaxFormLoop 2) AjaxFormLoops onAddRow event returns the newly added item Now the only problem I have left is: removing an item (using AjaxFormLoop remove event) works, but it does not rerender zones if I add some to this event (AjaxResponseRenderer.addRender()). I'm using tapestry5-jquery library btw. |
- Re: Dynamically add fields to form Nathan Quirynen
- Re: Dynamically add fields to form Lance Java
- Re: Dynamically add fields to form Nathan Quirynen