Skip to content

Spring MVC form binding #7

@gabrielbauman

Description

@gabrielbauman

Hi there,

Spring does some nifty form backing object binding and validation when a controller has a method like this:

public String handleForm(@ModelAttribute @Valid EmployeeForm employeeForm, BindingResult bindingResult)

I'm trying to figure out how to hook into this mechanism from a Jade template. Immediate question: how should my form input tags be named for the above controller method?

Obviously spring-jade4j doesn't have a macro library like that offered by Spring's Freemarker, Velocity, and JSP template resolvers. It seems like one could be easily implemented using Jade mixins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions