Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
1.4RC1
Description
When using a Map with form.copyTo(map) does not work hence form.copyFrom(map) works well. The problem
is in ensureObjectPathNotNull which tries to do a getInvoice() on a map.
Example:
Map map = new HashMap();
map.put("invoice", invoice);
....
form.copyFrom(map)
Form <- HashMap.invoice.invoiceNumber: 1234
....
form.copyTo(map)
java.lang.RuntimeException: java.lang.RuntimeException: Getter method not found for path value : invoice
at net.sf.click.util.ClickUtils.ensureObjectPathNotNull(ClickUtils.java:1763)
at net.sf.click.util.ClickUtils.copyFormToObject(ClickUtils.java:641)