Announcement Announcement Module
Collapse
No announcement yet.
Validation Framwork and Freemarker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X