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); }

      }

        Attachments

          Activity

            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: