I would also suggest getting familiar with Wicket's home page and making use of the Live example from under the Learn left navigation section: http://wicket.apache.org/learn/examples/
follow the examples Wicket has at: http://www.wicket-library.com/wicket-examples/index.html Start from the component examples at: http://www.wicket-library.com/wicket-examples/compref/ Or the Ajax ones: http://www.wicket-library.com/wicket-examples/ajax/ More precisely the one on File Upload via Ajax: http://www.wicket-library.com/wicket-examples/ajax/upload And take a look at its source code: http://www.wicket-library.com/wicket-examples/ajax/wicket/bookmarkable/org.a pache.wicket.examples.source.SourcesPage;jsessionid=CD0504C6E5FC8905084418BD 3FCF45A0?0&SourcesPage_class=org.apache.wicket.examples.ajax.builtin.Index&s ource=FileUploadPage.java ~ Thank you, Paul Bors -----Original Message----- From: Andrea Del Bene [mailto:an.delb...@gmail.com] Sent: Wednesday, October 03, 2012 4:34 PM To: users@wicket.apache.org Subject: Re: Reseting a textField of an upload form Hi, can you show the code you use to clear the model object of the textfield? > Hello, > > I have an upload form with a TextField and a FileUploadField. When the > user fill the form and press an AjaxButton, it refreshes the > RefreshingView listing the files already uploaded. > What I would like to do is clear the textfield when the form is submitted. > I already tried to add the text field in the AjaxRequestTarget of the > submitting button after having cleared the model object. Apparently it > works but when I try to submit a new time, it keeps sending null value > in my model object. > I also tried to update the model object by adding a > AjaxFormComponentUpdatingBehavior to the TextField and update the > model object from there: I see the new value entered, but when the > user presses the submit button, it keeps sending me null.... > I must be missing a things but I am totally lost :( > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Reseting-a-textField-of-an- > upload-form-tp4652632.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org