Hi Mohammad, make sure of notify the textfield about the model change
by invoking the Component#modelChanged method, inside the Link#onClick
implementation after set the new value.
e.g. field.modelChanged()

On Friday, May 13, 2011, 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
>
>

-- 
Pedro Henrique Oliveira dos Santos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to