On 9/6/07, Arinté <[EMAIL PROTECTED]> wrote:
> Eelco Hillenius wrote:
> > On 9/6/07, Arinté <[EMAIL PROTECTED]> wrote:
> >> Ok when the user press the submit button on a wicket form, how do you make
> >> it go to another page?  onSubmit has a void return....
> >
> > Use setResponsePage.
> >
> > Eelco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> I have tried that but it doesn't go to the next page.  I am using wicket 13b3.
> Here is the code:

Your label and password field don't have models. Components can only
have no explicit models when e.g. their parents have a
compoundpropertymodel or similar set. Do you do that somewhere else
(since if you don't the page should actually show an exception for the
label I think).

Try to set a breakpoint in onSubmit to see whether that method
executes in the first place, and it is typically a good idea to add a
feedback panel when you work with forms, so that validation errors
show up.

Eelco

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

Reply via email to