Announcement Announcement Module
Collapse
No announcement yet.
Best practice to perform batch update Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best practice to perform batch update

    My goal is to present a user interface to update several entities at once.

    Here's my entity:
    Code:
    @RooJavaBean
    @RooSerializable
    @RooEntity
    public class GoodType {
        @NotNull
        @DecimalMin("0.0")
        @Digits(integer = 4, fraction = 2)
        private Float price;
    
        @NotNull
        @Size(min = 5, max = 150)
        private String description;
    }
    The goal is to update prices in bulk. So user needs to see a kind of spreadsheet with some subset of the good types shown. Each row must display the description, current price and a field to put the new price to. Whenever one presses "Save" I need to update the prices in one go. Validation should also be performed and the relevant errors displayed if any.

    What is the best approach to achieve that?

    I tried to bind directly to List<GoodType> but I didn't manage to design a path expression for <form:input /> tag

  • #2
    Don't know how could I miss this post. It addresses almost all the issues I have.

    Comment

    Working...
    X