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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      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());

        Activity

        Hide
        sabob Bob Schellink added a comment -

        Fix checked in. Will be available in 1.4.

        Show
        sabob Bob Schellink added a comment - Fix checked in. Will be available in 1.4.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development