Hi,

 If the setRequired is  set to true, then the println statement is not
called, otherwise it is called. 
Not sure, where I am doing wrong. Please suggest.

final TextField<String> name= new TextField<String>("name"); 
 
        name.setRequired(true);
       
form.add(name.setConvertEmptyInputStringToNull(false).setOutputMarkupId(true));

 name.add(new AjaxFormComponentUpdatingBehavior("onBlur"){
                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {

                                System.out.println("is this called?");
                                target.addComponent(feedbackPanel);
                        }
                        
        });

Thanks for your time.
J.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-is-not-called-when-the-textfield-is-set-as-required-field-tp2263486p2263486.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Reply via email to