make

TextField<String> txtName

a field. Call txtName.setOutputMarkupId(true) and add it to the ART on on
click

On Thu, Oct 13, 2016 at 3:38 PM, Iamuser <superbiss...@gmail.com> wrote:

> Hello,
>
> Yes, adding the behavoiur AjaxFormComponentUpdatingBehavior on the text
> field, solved the issue.
>
> Thank you for solution.
>
> Now I'm facing following situation.
> When another link is clicked I need to clear the input fields (so my
> textfield).
>
> I have the following added, but the form just doesn't get cleared.
> The model is empty, but the page still remains with the text, even after
> page refresh.
> Could you please advise?
>
>
> AjaxLink<TestBean> clearLink = new AjaxLink<TestBean>("clearLink", model)
>                                 {
>                                         /**
>                                          *
>                                          */
>                                         private static final long
> serialVersionUID = 1L;
>
>                                         @Override
>                                         public void
> onClick(AjaxRequestTarget target) {
>                                                 model.setObject(new
> TestBean());
>                                                 TestForm.this.clearInput();
>                                         }
>
>                                 };
>
>                                         add(clearLink);
>
> PS: I hope I have subscribed to the mailing list. I have sent an email to
> users-allow-subscribe
>
>
> Thank you
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/AjaxLink-cannot-see-updated-model-values-
> tp4675743p4675761.html
> Sent from the Users forum 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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to