Results 1 to 2 of 2

Thread: Multiple Attributes

  1. #1
    Join Date
    Feb 2009
    Posts
    24

    Default Multiple Attributes

    I am trying to return multiple attribute objects in my model and then use dot notation in the path property of the form:input tag to reference them. But much to my surprise, it does not appear that it can be done according to SPR-5025. The following code does not work but would be great if it did.

    ....anyone know of a workaround?

    Controller:
    Code:
    ......
    	model.addAttribute("product", product);
    	model.addAttribute("location", location);
    ......
    Then I'd like to reference it like this:
    Code:
    <form:input path="product.price" id="price"/>
    <form:input path="location.street" id="street"/>

  2. #2
    Join Date
    Feb 2009
    Posts
    24

    Default

    Should this be a DTO or something? I dont believe dot notation works here either, so the following would be nice....

    path="myDTO.product.name"

    path="myDTO.location.street"

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
  •