Re: Nested forms not working in wizard.

2009-07-15 Thread Ned Collyer
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 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 :
>> 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 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 :
 I am currently running wicket 1.4-rc2

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

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

        add(new Form("form") {
           �...@override
            protected void onSubmit() {
                super.onSubmit();  <--- never fired
            }
        });
    }
 }
 


 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-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms not working in wizard.

2009-07-07 Thread nino martinez wael
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 :
> 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 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 :
>>> I am currently running wicket 1.4-rc2
>>>
>>> I have nested forms setup in the wizard.  One of my steps is as follows.
>>>
>>> 
>>> public class MyStep1 extends WizardStep {
>>>    public MyStep1(final CompoundPropertyModel campaignModel) {
>>>        super("Step 1", "Wow bananas");
>>>
>>>        add(new Form("form") {
>>>           �...@override
>>>            protected void onSubmit() {
>>>                super.onSubmit();  <--- never fired
>>>            }
>>>        });
>>>    }
>>> }
>>> 
>>>
>>>
>>> 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-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms not working in wizard.

2009-07-07 Thread Dave Schoorl


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 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 :


I am currently running wicket 1.4-rc2

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


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

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



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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms not working in wizard.

2009-07-06 Thread Ned Collyer
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 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 :
>> I am currently running wicket 1.4-rc2
>>
>> I have nested forms setup in the wizard.  One of my steps is as follows.
>>
>> 
>> public class MyStep1 extends WizardStep {
>>    public MyStep1(final CompoundPropertyModel campaignModel) {
>>        super("Step 1", "Wow bananas");
>>
>>        add(new Form("form") {
>>           �...@override
>>            protected void onSubmit() {
>>                super.onSubmit();  <--- never fired
>>            }
>>        });
>>    }
>> }
>> 
>>
>>
>> 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Nested forms not working in wizard.

2009-07-06 Thread nino martinez wael
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 :
> I am currently running wicket 1.4-rc2
>
> I have nested forms setup in the wizard.  One of my steps is as follows.
>
> 
> public class MyStep1 extends WizardStep {
>    public MyStep1(final CompoundPropertyModel campaignModel) {
>        super("Step 1", "Wow bananas");
>
>        add(new Form("form") {
>           �...@override
>            protected void onSubmit() {
>                super.onSubmit();  <--- never fired
>            }
>        });
>    }
> }
> 
>
>
> 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Nested forms not working in wizard.

2009-07-05 Thread Ned Collyer
I am currently running wicket 1.4-rc2

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


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

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



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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org