You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ned Collyer <ne...@gmail.com> on 2009/07/06 08:44:14 UTC
Nested forms not working in wizard.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Nested forms not working in wizard.
Posted by Dave Schoorl <ma...@cyber-d.com>.
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<ni...@gmail.com> 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 <ne...@gmail.com>:
>>
>>> 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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Nested forms not working in wizard.
Posted by Ned Collyer <ne...@gmail.com>.
Thanks I got it sorted.
Previously I was overriding delegateSubmit to perform validation. I
have moved some of my validation logic into onSubmit which has
remedied the situation.
On Tue, Jul 7, 2009 at 9:01 PM, nino martinez
wael<ni...@gmail.com> wrote:
> Hi Ned
>
> I know I have something similar, but my part are working.. It's pretty
> hard digesting without code.. :(
>
> 2009/7/7 Ned Collyer <ne...@gmail.com>:
>> 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<ni...@gmail.com> 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 <ne...@gmail.com>:
>>>> 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: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Nested forms not working in wizard.
Posted by nino martinez wael <ni...@gmail.com>.
Hi Ned
I know I have something similar, but my part are working.. It's pretty
hard digesting without code.. :(
2009/7/7 Ned Collyer <ne...@gmail.com>:
> 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<ni...@gmail.com> 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 <ne...@gmail.com>:
>>> 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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Nested forms not working in wizard.
Posted by Ned Collyer <ne...@gmail.com>.
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<ni...@gmail.com> 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 <ne...@gmail.com>:
>> 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Nested forms not working in wizard.
Posted by nino martinez wael <ni...@gmail.com>.
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 <ne...@gmail.com>:
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org