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(); > target.add(TestForm.this); > } > > }; > > add(clearLink); > > PS: I hope I have subscribed to the mailing list. I have sent an email to > users-allow-subscribe > http://wicket.apache.org/help/email.html#user Follow the links. Once subscribed just send messages to users@wicket.apache.org. Do not use Nabble! > > > 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 > >