Announcement Announcement Module
Collapse
No announcement yet.
Spring Framework 2.5.3 form:input tag brakes previous version 2.5 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Framework 2.5.3 form:input tag brakes previous version 2.5

    I changed today the version.

    I have:

    Code:
    @RequestMapping( "/detailAction.do" )
    public ModelAndView detalleDelegacion(@ModelAttribute MyObject o) {
    
    ModelMap model = new ModelMap();
    o = dao.detail( o.getId() );
    model.addAttribute( "ma", o );
    return new ModelAndView( "view", model );
    }
    
    -----
    
    <form:form action="action.do" modelAttribute="ma">
            <form:input path="property" />
    </form:form>
    
    -----
    
    public Class MyObject {
            private String property;
            ... getter ...
            ... setter ...
    }
    This used to work. But now the <form:input> does not print the property value. If I use ${ma.property} it works, but I want to use spring tags.

    How should I do it?
Working...
X