Let's say I have something like so:
object name extends MappedString(this, 50) {
override def validations = valMinLen(5, "name must be at least 5
characters") _ :: super.validations
}
I can now easily use myObject.name.toForm to generate an <input>
elements and deal with the results. But let's say the user enters
"Bob" for their name so it doesn't validate (and they get an
appropriate error message). When this happens, the field resets back
to the original value. What I'd really like to do is keep the user
entered value with the expectation that the user would change it
before re-submitting.
The same is true for all of the other fields on the form. When there
is an error in one of them, they all reset back to the orignal state.
(so an error in 1 field means the user has to re enter the data in all
fields). Is there a trivial way to fix this? Planning to dive into
the sourcecode if there isn't, but what I want kind of seems like what
should maybe be default behavior for MappedFoo objects.
-harryh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---