RE: Form submit event

2012-03-26 Thread Schlärmann , Bob
Ok I'll try to rephrase my question:

Is there an equivalent to the Behavior class for form submissions? e.g. allow 
external classes to override or extent behavior of form components.

I'm trying to show/hide sections of a form when a user selects a radio button 
which is also part of the form. The transition needs to be done without a page 
reload. 

One way to accomplish this is to add an onClick AJAX behavior to the radio 
component. This AJAX behavior then enables/disables the section that was made 
visible at the server side (on the client side this is done through DHTML). 

However this AJAX call is not really needed if it was possible to set the state 
of the target component just before the form submission.

Note that I can't use Behavior.onConfigure since that method gets called after 
the form submission processes has ended.

Thanks,

Bob

> -Original Message-
> From: Martin Grigorov [mailto:mgrigo...@apache.org]
> Sent: maandag 26 maart 2012 14:13
> To: users@wicket.apache.org
> Subject: Re: Form submit event
> 
> Hi,
> 
> Can you rephrase after what and before what?
> 
> On Mon, Mar 26, 2012 at 1:48 PM, Schlärmann, Bob
>  wrote:
> > Hello List,
> >
> > I'm trying to set the enable state of some form component based on the
> outcome of another form component. This needs to be done after a form request
> is submitted but before the form submitting process is started.
> >
> > Are there any methods to do this?
> >
> > Best regards,
> >
> > Bob
> >
> >
> > Think green - keep it on the screen.
> >
> > This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an intended
> recipient then please promptly delete this e-mail and any attachment and all
> copies and inform the sender. Thank you.
> >
> 
> 
> 
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.



Re: Form submit event

2012-03-26 Thread Martin Grigorov
Hi,

Can you rephrase after what and before what?

On Mon, Mar 26, 2012 at 1:48 PM, Schlärmann, Bob
 wrote:
> Hello List,
>
> I'm trying to set the enable state of some form component based on the 
> outcome of another form component. This needs to be done after a form request 
> is submitted but before the form submitting process is started.
>
> Are there any methods to do this?
>
> Best regards,
>
> Bob
>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended 
> recipient(s) only. It may contain proprietary material, confidential 
> information and/or be subject to legal privilege. It should not be copied, 
> disclosed to, retained or used by, any other party. If you are not an 
> intended recipient then please promptly delete this e-mail and any attachment 
> and all copies and inform the sender. Thank you.
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Form submit event

2012-03-26 Thread Schlärmann , Bob
Hello List,

I'm trying to set the enable state of some form component based on the outcome 
of another form component. This needs to be done after a form request is 
submitted but before the form submitting process is started.

Are there any methods to do this?

Best regards,

Bob


Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.