Re: how to clear validation error

2010-03-24 Thread Nikola Šaub
-library.com. What should I do in the onError method to correct this situation? Sorry to be so lame and thanks for your help. -- View this message in context: http://old.nabble.com/how-to-clear-validation-error-tp27072529p28021934.html Sent from the Wicket - User mailing list archive

how to clear validation error

2010-01-08 Thread Chuck Brinkman
I have a form with a html submit button. In java I wrote my own onSubmit to handle the form processing. In the form I have a firstName field that is required. li First Name: span wicket:id=borderFirstName input type=text

RE: how to clear validation error

2010-01-08 Thread Bodis, Jerome
@wicket.apache.org Subject: how to clear validation error I have a form with a html submit button. In java I wrote my own onSubmit to handle the form processing. In the form I have a firstName field that is required. li First Name: span wicket:id

Re: how to clear validation error

2010-01-08 Thread Chuck Brinkman
[mailto:chasb1...@gmail.com] Sent: Friday, January 08, 2010 9:02 AM To: users@wicket.apache.org Subject: how to clear validation error I have a form with a html submit button. In java I wrote my own onSubmit to handle the form processing. In the form I have a firstName field that is required

Re: how to clear validation error

2010-01-08 Thread Chuck Brinkman
I created a simple example. Here is my html and java. Once I get a validation error my onSubmit is not called. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head titleCurrent Page/title link

Re: how to clear validation error

2010-01-08 Thread Martijn Dashorst
Override Form#onError Martijn On Fri, Jan 8, 2010 at 1:16 PM, Chuck Brinkman chasb1...@gmail.com wrote: I created a simple example.  Here is my html and java.  Once I get a validation error my onSubmit is not called. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Re: how to clear validation error

2010-01-08 Thread Chuck Brinkman
Thanks for your help but I don't understand. I even got the source code for http://www.wicket-library.com/wicket-examples/signin/?wicket:bookmarkablePage=:org.apache.wicket.examples.signin.SignInand when I run this in my environment I have the same issue I have with my code. Once I get a

Re: how to clear validation error

2010-01-08 Thread Chuck Brinkman
I got the code for wicket 1.4.5 and stepped through to see what is causing the problem. Form.anyFormComponentError checks all the components on the form to see if 1) input is required and 2) is an error message exists for the component. It appears to me that once a message is set that it is

Re: how to clear validation error

2010-01-08 Thread Chuck Brinkman
The messages are kept in WebSession and WebSession has cleanupFeedbackMessages() but this is never called. Got it. The session I created had a empty cleanupFeedbackMessages() method. Thanks for reading along. On Fri, Jan 8, 2010 at 9:48 PM, Chuck Brinkman chasb1...@gmail.com wrote: I got the