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

form.copyTo() does not handle Map's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • core
    • 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)

      Attachments

        Activity

          People

            sabob Bob Schellink
            harry.wissiak@audatex.ch harryw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: