-
Feb 8th, 2010, 03:04 PM
#1
Validation Framwork and Freemarker
I'm working with org.springframework.validation with Spring 3MVC Portlets. I use a BindingResult and run validator.validate(myObject, bindingResult). I set model.addAttribute("foo", bindingResult.getAllErrors.size()) and I can get the correct number of errors to display on the page. My ftl file has
<@spring.formInput "myObject.field"/>
<@spring.showErrors "br/"/>
The issue is that no error messages ever show up that are attached to that field. Does anyone have any insight or a good example they can point me to. I've been working on this for a few days, and have made the google rounds. I'm a little lost.
Thanks,
Amos
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules