Right now the CommonsValidator class in shale looks explicity for a
validator-rules.xml in /WEB-INF/. It might be nice to add support for
picking up a validator-rules.xml from a jar files /META-INF directory, like
what is done with faces-config.xml. I think this approach may be flawed
because if I am not mistaken commons validator only supports 1
validator-rules.xml, and jsf supports multiple faces-config.xml. So I guess
you get into trouble if more than 1 jar on the classpath has a
/META-INF/validator-rules.xml. You could pick the first one encountered, but
that is probably not the best solution.
 Is there any precedant of loading from a jar, or has it always been put the
rules in /WEB-INF?
 Thanks,
Ryan

Reply via email to