Issue Details (XML | Word | Printable)

Key: EQX-123
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Scott Purcell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse Light

DynaValidatorForm validtion error

Created: 21/Feb/07 10:12 AM   Updated: 07/Sep/07 10:50 AM   Resolved: 07/Sep/07 10:50 AM
Component/s: Web - Struts
Affects Version/s: 1.7
Fix Version/s: 1.8

Environment:
Tomcat 5.5, Mysql 5.0, XP


 Description  « Hide
The Equinox 1.7 download with Struts, Spring, and Hibernate has an issue in which the validation is now working even in the example:
See Link here also:

http://demo.raibledesigns.com/equinox-struts/users.html

when you add a user from the userForm, it should make sure that the last name is required. Configuration is in place, but never calls the input, or throws the message to the screen. Instead just puts bad data to the database.





Scott Purcell added a comment - 21/Feb/07 11:10 AM

>
> In the validator-rules.xml there is a required validator:
> <validator name="required"
> classname="org.apache.struts.validator.FieldChecks"
> method="validateRequired"
> methodParams="java.lang.Object,
> org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
> org.apache.struts.action.ActionMessages,
> javax.servlet.http.HttpServletRequest"
> msg="errors.required"/>
>
> Problem is, the constructor in the 1.2.9 jar has a
> org.apache.commons.validator.Validator between ActionMessages and
> Request. Once I added it like so:
>
> <validator name="required"
> classname="org.apache.struts.validator.FieldChecks"
> method="validateRequired"
> methodParams="java.lang.Object,
> org.apache.commons.validator.ValidatorAction,
> org.apache.commons.validator.Field,
> org.apache.struts.action.ActionMessages,
> org.apache.commons.validator.Validator,
> javax.servlet.http.HttpServletRequest"
> msg="errors.required"/>
>
> All works great now. I just didn't know how to put this fix into the
> JIRA?

If you add this e-mail as a comment on the issue - that's good enough for me. ;-)


Matt Raible made changes - 25/Apr/07 02:47 AM
Field Original Value New Value
Fix Version/s 1.8 [ 10100 ]
Matt Raible made changes - 07/Sep/07 10:50 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]