Re: Nested forms problem

2008-01-24 Thread Steen Larsen
Hm, it seems like i can get the behaviour I expect by overiding the inner form button's onSubmit method and setting setDefaultFormProcessing(false) on it as in this code. public class Test extends WebPage { public Test() { MandatoryProductsForm outer = new MandatoryProductsForm("outer

Re: Nested forms problem

2008-01-23 Thread James Carman
Okay, I stand corrected. We had this question come up on the Tapestry users group and I don't believe Tapestry supports it (at least it didn't). I guess I just assumed Wicket didn't either. There's another reason for me to make the switch! :) I'm going to have to go look into this. Sounds like

Re: Nested forms problem

2008-01-23 Thread Steen Larsen
The button's onSubmit gets called, but not the form's onSubmit that the button is a part of. That's what i can't figure out as the javadoc says it should only submit the inner form. /Steen 2008/1/23, Matej Knopp <[EMAIL PROTECTED]>: > > You seem to have a button in your search phone. type="su

Re: Nested forms problem

2008-01-23 Thread Matej Knopp
You seem to have a button in your search phone. wrote: > According to the javadoc for Form it is possible because the inner form gets > substituted with span tags. It says: > > > Forms can be nested. You can put a form in another form. Since HTML doesn't > allow nested tags, the inner forms w

Re: Nested forms problem

2008-01-23 Thread Steen Larsen
According to the javadoc for Form it is possible because the inner form gets substituted with span tags. It says: Forms can be nested. You can put a form in another form. Since HTML doesn't allow nested tags, the inner forms will be rendered using the tag. You have to submit the inner forms usi

Re: Nested forms problem

2008-01-23 Thread James Carman
http://www.thescripts.com/forum/thread95602.html On 1/23/08, Steen Larsen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have seen that nested forms should be possible in Wicket 1.3, so i have > tried to use it in one of my projects, but for some reason when submitting > the inner form, only the outer

Nested forms problem

2008-01-23 Thread Steen Larsen
Hi, I have seen that nested forms should be possible in Wicket 1.3, so i have tried to use it in one of my projects, but for some reason when submitting the inner form, only the outer form submit method is run. The code looks something like this: In a WebPage class MandatoryProductsForm