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

Form.copyTo() does NOT set java.sql.Time nor java.sql.Timestamp

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Minor
    • Resolution: Later
    • 2.3.0
    • None
    • core
    • None

    Description

      If you have a POJO with a Time or Timestamp:
      class Pojo {
      ...
      private Time t;
      ...
      public void setT(Time t)

      {this.t=t;}

      public Time getT()

      {return t;}

      }

      And you want Form click to copy request contents to it like this:

      myform.copyTo(pojo); // pojo is a Pojo with Time t attribute

      pojo.getT() will end up being null instead of the time that was sent on the request.

      The problems seems to be on Ognls's ognl.setValue()

      Attachments

        Activity

          People

            Unassigned Unassigned
            josvazg Jose Luis Vázquez González
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: