Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
Does your cancel button have default formprocessing set to false?

Maurice

On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just won't
 close. Debugger shows that the cancel button's onSubmit() method doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does the
 feedback panel.



 I suspect this has to do with those components being set to required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Strange problem cancelling out of a modal

2008-05-20 Thread Michael Mehrle
Not that I am aware of - don't know that setting. What would that do
exactly?



-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 12:02 AM
To: users@wicket.apache.org
Subject: Re: Strange problem cancelling out of a modal

Does your cancel button have default formprocessing set to false?

Maurice

On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED]
wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just won't
 close. Debugger shows that the cancel button's onSubmit() method
doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does
the
 feedback panel.



 I suspect this has to do with those components being set to required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



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



Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
It turns off form validating and model updating, giving you full
control to this yourself or skip it all together.
In the case of a cancel button the latter is generally what you want.

Alternatively you can use a plain link so your form does not even get submitted.

Maurice

On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
 Not that I am aware of - don't know that setting. What would that do
 exactly?



 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 12:02 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 Does your cancel button have default formprocessing set to false?

 Maurice

 On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle [EMAIL PROTECTED]
 wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just won't
 close. Debugger shows that the cancel button's onSubmit() method
 doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does
 the
 feedback panel.



 I suspect this has to do with those components being set to required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



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



RE: Strange problem cancelling out of a modal

2008-05-20 Thread Michael Mehrle
I looked for that call, but couldn't find it - could you please point me
in the right direction?

Also, I assume setting this in the cancel button's event handler would
be sufficient?

Thanks for your input.

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 11:47 AM
To: users@wicket.apache.org
Subject: Re: Strange problem cancelling out of a modal

It turns off form validating and model updating, giving you full
control to this yourself or skip it all together.
In the case of a cancel button the latter is generally what you want.

Alternatively you can use a plain link so your form does not even get
submitted.

Maurice

On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:
 Not that I am aware of - don't know that setting. What would that do
 exactly?



 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 12:02 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 Does your cancel button have default formprocessing set to false?

 Maurice

 On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle
[EMAIL PROTECTED]
 wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just won't
 close. Debugger shows that the cancel button's onSubmit() method
 doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does
 the
 feedback panel.



 I suspect this has to do with those components being set to required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



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



Re: Strange problem cancelling out of a modal

2008-05-20 Thread Maurice Marrink
See Button#setDefaultFormProcessing and you would call it either in
the constructor of the button or directly after constructing the
button. onsubmit is too late.

Maurice

On Tue, May 20, 2008 at 8:49 PM, Michael Mehrle [EMAIL PROTECTED] wrote:
 I looked for that call, but couldn't find it - could you please point me
 in the right direction?

 Also, I assume setting this in the cancel button's event handler would
 be sufficient?

 Thanks for your input.

 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 11:47 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 It turns off form validating and model updating, giving you full
 control to this yourself or skip it all together.
 In the case of a cancel button the latter is generally what you want.

 Alternatively you can use a plain link so your form does not even get
 submitted.

 Maurice

 On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle [EMAIL PROTECTED]
 wrote:
 Not that I am aware of - don't know that setting. What would that do
 exactly?



 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 12:02 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 Does your cancel button have default formprocessing set to false?

 Maurice

 On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle
 [EMAIL PROTECTED]
 wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just won't
 close. Debugger shows that the cancel button's onSubmit() method
 doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does
 the
 feedback panel.



 I suspect this has to do with those components being set to required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Strange problem cancelling out of a modal

2008-05-20 Thread Michael Mehrle
That seems to be working fine now. It's sometimes easy to ignore/forget
the underpinnings of how wicket works. Obviously, to wicket this is a
submit button and the form was being processed prior to closing the
modal.

Thanks a lot for your help :-)

Michael

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 11:56 AM
To: users@wicket.apache.org
Subject: Re: Strange problem cancelling out of a modal

See Button#setDefaultFormProcessing and you would call it either in
the constructor of the button or directly after constructing the
button. onsubmit is too late.

Maurice

On Tue, May 20, 2008 at 8:49 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:
 I looked for that call, but couldn't find it - could you please point
me
 in the right direction?

 Also, I assume setting this in the cancel button's event handler would
 be sufficient?

 Thanks for your input.

 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 11:47 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 It turns off form validating and model updating, giving you full
 control to this yourself or skip it all together.
 In the case of a cancel button the latter is generally what you want.

 Alternatively you can use a plain link so your form does not even get
 submitted.

 Maurice

 On Tue, May 20, 2008 at 8:34 PM, Michael Mehrle
[EMAIL PROTECTED]
 wrote:
 Not that I am aware of - don't know that setting. What would that do
 exactly?



 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 20, 2008 12:02 AM
 To: users@wicket.apache.org
 Subject: Re: Strange problem cancelling out of a modal

 Does your cancel button have default formprocessing set to false?

 Maurice

 On Tue, May 20, 2008 at 2:36 AM, Michael Mehrle
 [EMAIL PROTECTED]
 wrote:
 I've got a strange problem cancelling out of a modal. Unless I make
 selections on all my form components inside that modal, it just
won't
 close. Debugger shows that the cancel button's onSubmit() method
 doesn't
 even get called, unless I fill out all the fields and select all the
 radios. The AJAX panel doesn't show any errors either, neither does
 the
 feedback panel.



 I suspect this has to do with those components being set to
required,
 but I never had a problem like that before.



 Any idea what's going on here?



 Michael



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



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



Strange problem cancelling out of a modal

2008-05-19 Thread Michael Mehrle
I've got a strange problem cancelling out of a modal. Unless I make
selections on all my form components inside that modal, it just won't
close. Debugger shows that the cancel button's onSubmit() method doesn't
even get called, unless I fill out all the fields and select all the
radios. The AJAX panel doesn't show any errors either, neither does the
feedback panel.

 

I suspect this has to do with those components being set to required,
but I never had a problem like that before.

 

Any idea what's going on here?

 

Michael