The button has a setDefaultFormProcessing option, if you turn it off,
you manually have to do whatever form.process now does for you, which
is amongst other things form validation.
Maurice
On 7/10/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Is there a way to display a modal window when a submit button is clicked
>
> Use Case is
>
> Button button = new Button("bbutton")
> {
> protected void onSubmit()
> {
> if(isValidInput())
> {
> // do process and traverse to next screen
> }
> else
> {
> // show a modal dialog with messages
> }
> }
> }
>
>
> Thanks
> Dipu
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user