Re: Can't update TextField via Ajax after a validation error

2009-09-08 Thread Neil Curzon
Hi Jason, Thanks for the tip and explanation. It makes sense, and calling testInput.clearInput() fixed the issue. Neil On Fri, Sep 4, 2009 at 7:20 PM, Jason Lea wrote: > When a field is submitted and there is a validation error, it doesn't > update the model and the field will redisplay with t

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Jason Lea
When a field is submitted and there is a validation error, it doesn't update the model and the field will redisplay with the invalid input. This way the user can see what they typed and can fix the problem. With your populate link, you are updating the model, but wicket won't look at the model

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Neil Curzon
Thanks for the reply. It doesn't sound like this is exactly what I want, though. I do need my required field to be validated, always. I just don't understand why validation works when the link that fills in the Integer behind the property model is clicked first, but the same link populating and up

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Pedro Santos
Take a look at: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) On Fri, Sep 4, 2009 at 7:01 PM, Neil Curzon wrote: > Hi all, > > I'm having a weird problem that causes an input to refuse to update with an

Can't update TextField via Ajax after a validation error

2009-09-04 Thread Neil Curzon
Hi all, I'm having a weird problem that causes an input to refuse to update with an AjaxLink click method when there's been a validation error. One field in the form has a property model pointing to an Integer value. It's set to required, and there are other links that set the Integer value. What