Uploaded image for project: 'Click'
  1. Click
  2. CLK-278

improve Form.copyFrom to align with special Map handling of Form.copyTo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • 1.4RC2

    Description

      CLK-239 enhanced the Form.copyTo method to handle Maps as well as POJO's. However Form.copyFrom fails to copy from the Map if the target Field contains a property path for example "address.street". The following test fails:

      String street = "12 Short street";
      Map map = new HashMap();
      map.put("address.street", street);

      Form form = new Form("form");
      TextField streetField = new TextField("address.street");
      form.add(streetField);
      form.copyFrom(map, true);
      assertEquals(street, streetField.getValue());

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: