Hello,
My problem here is that when there is a page error the textfield is not
updated during target.addcomponet call..here is my code snippet:

class MyPage ...


  MyPanel mypanel ....
   add(mypanel)

class MyPanel. ....

  TextField amt = new TextField("amt",new PropertyModel(this,"amt"));
  TextField convAmtText = new TextField("convamt", new
PropertyModel(this,"convamt"));
               convAmtText .setOutputMarkupId(true)

  amt.add(new AjaxFormComponentUpdatingBehavior("onblur"){
                        @Override
                        protected void onUpdate(final AjaxRequestTarget target) 
{
                                try {
                                        convAmt = rate * getAmt();
                                        
                                        
                                        convAmtText.setModelObject(convAmt);
                                        target.addComponent(convAmtText);
                                } catch (Exception e) {
                                        e.printStackTrace();
                                }
                        }
                });

...after the call "onblur" the convAmtText is not updated. Do i miss
something?or what?

Thanks a lot... cheers.


-- 
View this message in context: 
http://www.nabble.com/TextField-does-not-update-during-page-erros-tp18233173p18233173.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