I'm not sure I understand the steps that cause the problem.
Case 1 1- A user opens the page 2- The user click the link, updating the value textfield 3- User submits the form, no validation error occurs, all is well. Case 2- 1- user opens page 2- user submits form 3- required error apears, field is still empty Case 3- 1- user opens page 2- user clicks link, populating the textfield 3- user deletes the text from the text field 4- form is submitted, causing validation error and the textfield is repopulated with the value the clicked link put in it Is case 3 the problem you are hitting? -Clint On Fri, May 13, 2011 at 4:16 PM, msalman <mohammad_sal...@yahoo.com> wrote: > I have a text field that is required to have a value. I also have a link > that on being clicked inserts a value into the text field. It all works > fine except if the user submits the form without setting the value for > the text field. Once the form has been submitted without the required > value, and the form has generated the error, the text field does seem to > get/show the value that the link is trying to enter. > > I just hope that I am not doing something right and that some one will > kindly point out the error. I am attaching a quickstart. > > Thanks. > http://apache-wicket.1842946.n4.nabble.com/file/n3521252/TextFieldTest.zip > TextFieldTest.zip > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/TextField-not-getting-the-value-after-a-validation-eror-tp3521252p3521252.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 > >