[ http://issues.apache.org/struts/browse/SHALE-325?page=comments#action_38601 ] Wendy Smoak commented on SHALE-325: -----------------------------------
See: http://svn.apache.org/viewvc?view=rev&rev=471907 This is incomplete. I added a third section on the 'Commons Validator Integration' page. If you enter an odd number for 'Priority', you get: java.lang.NullPointerException java.text.MessageFormat.applyPattern(MessageFormat.java:414) java.text.MessageFormat.<init>(MessageFormat.java:368) org.apache.shale.validator.CommonsValidator.getErrorMessage(CommonsValidator.java:965) org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:849) javax.faces.component._ComponentUtils.callValidators(_ComponentUtils.java:157) javax.faces.component.UIInput.validateValue(UIInput.java:312) javax.faces.component.UIInput.validate(UIInput.java:353) javax.faces.component.UIInput.processValidators(UIInput.java:183) javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624) javax.faces.component.UIForm.processValidators(UIForm.java:70) javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624) javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624) javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146) org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262) org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76) javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267) > Add a custom validation example to the Use Cases example app > ------------------------------------------------------------ > > Key: SHALE-325 > URL: http://issues.apache.org/struts/browse/SHALE-325 > Project: Shale > Issue Type: Improvement > Components: Validator > Reporter: Wendy Smoak > Priority: Minor > Fix For: 1.0.4-SNAPSHOT > > > Add an example of using a custom validator to the Commons Validator > Integration section of the use-cases example app. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira