Hello Guys.

I am trying to validate my RequiredTextFields directly when/after the Page
is loaded so that I can display the required errormessage in my
feedbackpanel.

Currently I try to do this in the Pages constructor:

add(new AjaxEventBehavior("onload")
{
  protected void onEvent(AjaxRequestTarget target)
  {
    fieldLastName.validate();
    target.addComponent(getBorder().get("footerFeedback"));
  }
});

But that doesn't work.

Any idea how to achieve that?


Thomas
-- 
View this message in context: 
http://www.nabble.com/How-can-I-validate-required-formComponents-after-page-load--tp14730931p14730931.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to