click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Luis Vázquez González (JIRA) <j...@apache.org>
Subject [jira] [Created] (CLK-772) Form.copyTo() does NOT set java.sql.Time nor java.sql.Timestamp
Date Wed, 15 Jun 2011 15:53:47 GMT
Form.copyTo() does NOT set java.sql.Time nor java.sql.Timestamp
---------------------------------------------------------------

                 Key: CLK-772
                 URL: https://issues.apache.org/jira/browse/CLK-772
             Project: Click
          Issue Type: Bug
          Components: core
    Affects Versions: 2.3.0
            Reporter: Jose Luis Vázquez González


I 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()


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message