Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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());