Could this be related to this issue: https://issues.apache.org/jira/browse/WICKET-2150 ?



Ned Collyer wrote:
The nesting is -

The outer form is inside the wizard, then I have an inner form inside
one of the steps.

Sorry, I cant show you the output of the html - I scrapped the impl I
had am implementing a less "wizardy" wizard.

On Mon, Jul 6, 2009 at 8:36 PM, nino martinez
wael<[email protected]> wrote:
Is the form nested in the other form in html. I remember vaguely
something about it needs to be nested, wicket then rewrites it or
something like that.. How does the resulting html look like?

2009/7/6 Ned Collyer <[email protected]>:
I am currently running wicket 1.4-rc2

I have nested forms setup in the wizard.  One of my steps is as follows.

<code>
public class MyStep1 extends WizardStep {
   public MyStep1(final CompoundPropertyModel<Campaign> campaignModel) {
       super("Step 1", "Wow bananas");

       add(new Form("form") {
           @Override
           protected void onSubmit() {
               super.onSubmit();  <--- never fired
           }
       });
   }
}
</code>


The wizard successfully navigates between steps, and validation occurs
against any fields in the nested forms.


The onSubmit of the inner form is never fired - this is ... pretty annoying :)

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to