Thanks, this works, at least when calling this on the entire form object.
Still I think this is a bit strange since it is a new request, after
pressing the link. By that time the error message is also gone, while
the form stays with these old values.
Rutger
On 12/10/08, Igor Vaynberg [EMAIL
Hi,
I have a strange situation in the admin part of my application which I
have reproduced in this tiny code example.
In this example I can load a value in the textfield by clicking the
link (which also increases the number to show that the link works ok).
I can post the form without problems
Solution: remove the FormValidation =)
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld
On Wed, Dec 10, 2008 at 9:34 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
Why on earth would you want to update a model value when there's a
validation error in the input? That is the whole point of validation!
Martijn
On Wed, Dec 10, 2008 at 10:44 AM, Rutger Jansen [EMAIL PROTECTED] wrote:
Hi,
I have a strange situation in the admin part of my application which I
don't know if i totally understood the setting of your example, but
your edit button shouldn't submit/post the form, eg. just use a Link
attached to an input type=button tag instead of a Button.
Gerolf
On Wed, Dec 10, 2008 at 1:11 PM, Rutger Jansen [EMAIL PROTECTED] wrote:
Well this is of
Sorry for the misunderstanding. But it's not a submit button, just a
link for editing. The onSubmit is not called there.
The form also has a button that does submit the form.
I see in debug mode that the link is correctly called and that the
model object is correctly updated, also when problem
call clearinput() on the textfield from your link. formcomponents hold
on to the values entered by user if there is an error so the erroneous
values can be redisplayed when the form is redrawn.
-igor
On Wed, Dec 10, 2008 at 7:11 AM, Rutger Jansen [EMAIL PROTECTED] wrote:
Sorry for the