Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Provide a facility to automatically populate a Form's field values from a Java Object's attributes, and to set an Object's attributes from the Form Field values. For example:

      public void onGet() {
      Integer customerId = Integer.valueOf(getContext().getRequest().getParameter("customerId"));
      Customer customer = CustomerDAO.findByPK(customerId);
      form.copyFrom(customer);
      }

      public void onPost() {
      if (form.isValid())

      { Customer customer = new Customer(); form.copyTo(customer); CustomerDAO.save(customer); }

      }

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Comitted to CVS will be available in release 0.11.

        Implementation provided in ClickUtils with methods exposed in Form class.

        Show
        medgar Malcolm Edgar added a comment - Comitted to CVS will be available in release 0.11. Implementation provided in ClickUtils with methods exposed in Form class.

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            medgar Malcolm Edgar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development