If you can please provide your code then may be I might be able to figure out
the problem.
Thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/TextField-not-getting-the-value-after-a-validation-eror-tp3521252p3556715.html
Sent from the Users forum mailing list
Hi Clint:
The steps are:
1- user opens page
2- user submits form (without entering any value)
3- required error appears.
4- user clicks on the link to enter value and no value appears in the text
box.
--
View this message in context:
Hi Pedro:
Thanks for that. And it fixed the problem.
The onClick code is now like this:
String guid = java.util.UUID.randomUUID().toString();
bean.setText(guid);
textField.modelChanged();
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
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,
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