if that exception is thrown then yes it should just render the current
page again with your error feedback
On 11/6/07, mfs <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> Facing a minor issue...thought to ask here before investing too much time in
> it...
>
> Got a login page with loginform (with onSubmit processing)...below is the
> code for the onSubmit method, what i want to do is in case of an
> authentication error take the user to the same LoginPage and display the
> error message...else forward it to it some other page..also have got a
> feedbackpanel on the loginpage so i am expecting that in case of an
> exception the login page show up with the error message as in the exception
> block, but instead it is taking me to the index.page which is the default
> home page..Shouldnt the same page (i.e. Login) in case i have set the errors
> on that page.. ? and given their feedbackpanel on that page ?
>
> protected void onSubmit() {
>
> try {
> loginService.authenticate(username,password);
> setResponsePage(new UserProfilePage());
> } catch (InvalidUserException iue) {
> error("Invalid UserName/Password, Please try again....");
> }
> }
>
> Farhan.
>
> --
> View this message in context:
> http://www.nabble.com/displaying-error---Form.onSubmit%28%29-tf4760550.html#a13614452
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]