when debugging the 'JQueryValidator' class in Monorail I found that
the validation method 'SetLengthRange' is not implemented correctly.
This method defines a rule for the jQuery.Validation plugin.
Unfortunately the plugin expects the 'name' of the element to
validated as key where as the implementation takes the 'id' as key.
But these are (most of the time) different.
Example: I put an object of type Employee into the property bag
PropertyBag["employee"]=employee;
then I have e.g. this field in my view (Brail View engine)
${Form.TextField("employee.LastName")}
The FormHelper class makes something like this of it:
<input id="employee_LastName" name="employee.LastName" .../>
note that the id and name are different!
Since the method "SetLengthRange" only receives as a parameter the
content of the id attribute and NOT the html element it is not easily
possible to resolve this problem...
Any solutions for this???
Any help is appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---