I can't, because target.addComponent is called in the AjaxFormComponentUpdatingBehavior on one of the field. But I already found a solution. I added AjaxFormComponentUpdatingBehavior to the text field, so that the value is kept on the server. Thanks
On Wed, Jul 20, 2011 at 10:51 AM, Pedro Santos <pedros...@gmail.com> wrote: > Hi Anna, use an submit component like AjaxLink or AjaxButton to > interact with server. Even if you skip the default form processing by > set submitComponent.setDefaultFormProcessing(false) the input in the > fieldName will be kept. > > On Wed, Jul 20, 2011 at 11:37 AM, Anna Simbirtsev <asimbirt...@gmail.com> > wrote: > > Hi, > > > > I refresh the page using target.addComponent(fieldName); > > The value that was entered in the text field is cleared. How can I get it > to > > keep the value? > > > > Thanks > > Anna > > > > > > -- > Pedro Henrique Oliveira dos Santos > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anna Simbirtsev (416) 729-7331