Results 1 to 2 of 2

Thread: Best practice to perform batch update

  1. #1
    Join Date
    Jan 2011
    Location
    Kirovohrad, Ukraine
    Posts
    59

    Question 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. #2
    Join Date
    Jan 2011
    Location
    Kirovohrad, Ukraine
    Posts
    59

    Default

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

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
  •