I have valang working, including client-side validation in freemarker. I'm using the new Spring 2.0 freemarker/taglibs integration.
The problem is, the validate tag expects a body, and if it doesn't get a body, it chucks a parse error.
I reference the valang js tags like so:
if I do this:HTML Code:<#assign valang=JspTaglibs["http://www.springmodules.org/tags/valang"]>
I get this:HTML Code:<@valang.validate commandName="command" />
caused by this:freemarker.template.TemplateModelException: javax.servlet.jsp.JspException: Could not parse valang
at freemarker.ext.jsp.TagTransformModel$TagWriter.aft erBody(TagTransformModel.java:507)
If I do this:org.springmodules.validation.valang.parser.ParseEx ception: Encountered "<EOF>" at line 1, column 0.
Was expecting:
"{" ...
it works fine (except I have to define a javascript-only rule that I do not want)HTML Code:<@valang.validate commandName="command"> { stupid : ? has text : 'this is stupid' } </@valang.validate>
I did not have this problem in JSP.
Help? Anyone?


