DATETIME stereotype

Help
findatalus
2013-06-11
2013-06-20
  • findatalus
    findatalus
    2013-06-11

    Hi

    when i try to use DATETIME stereotype i get a mismatch exception

    • here is the def
      @Stereotype("DATETIME")
      private String dueDate;
      public String getDueDate() {
      return dueDate;
      }

      public void setDueDate(String dueDate) {
      this.dueDate = dueDate;
      }

    • here is the error in chrome
      Impossible to execute Save action: Impossible to assign values to object of class Coupon because Impossible to set object properties because argument type mismatch

    • here is tomcat console exception
      SEVERE: Impossible to assign values to object of class Coupon because Impossible
      to set object properties because argument type mismatch
      org.openxava.util.XavaException: Impossible to assign values to object of class
      Coupon because Impossible to set object properties because argument type mismatc
      h
      at org.openxava.model.impl.MapFacadeBean.setValues(MapFacadeBean.java:12
      92)
      at org.openxava.model.impl.MapFacadeBean.setValues(MapFacadeBean.java:19
      5)
      at org.openxava.model.MapFacade.setValues(MapFacade.java:635)
      at org.openxava.actions.SaveAction.execute(SaveAction.java:40)
      at org.openxava.controller.ModuleManager.executeAction(ModuleManager.jav
      a:415)
      at org.openxava.controller.ModuleManager.executeAction(ModuleManager.jav
      a:334)
      at org.openxava.controller.ModuleManager.execute(ModuleManager.java:294)

      at org.apache.jsp.xava.execute_jsp._jspService(execute_jsp.java:192)
      

    what am i doing wrong ?
    * BTW, everything is set to UTF-8 (tomcat encoding, tomcat conf and module.jsp)

    thanks alot!!
    ben

     
  • Javier Paniza
    Javier Paniza
    2013-06-13

    Hi Ben,

    DATETIME stereotype is to be used with java.util.Date, not String. Of course, you can create your own stereotype for manage Strings as dates, but it is not included by default in OpenXava.

    Just write you code in this way:

    @Stereotype("DATETIME")
    private java.util.Date dueDate;
    

    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.

     
  • findatalus
    findatalus
    2013-06-14

    Hi Javier

    thanks, i did think its strange to use a string but was sure i saw it in the documentation so i went and rechecked.. i was wrong :)

    so date works but.. the date selection panel dosent open up in chrome (i do see it working well in IE)

    any advice ?

    thanks
    ben

     
  • Javier Paniza
    Javier Paniza
    2013-06-17

    Hi Ben,

    the date selection panel dosent open up in chrome

    I just tried it with Chrome and it works perfectly.
    Which version of Chrome are you using?
    Did you try it with other browsers? Does it work?


    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.

     
  • findatalus
    findatalus
    2013-06-18

    Hi Javier

    im using chrome latest release(27.0.1453.110m)

    IE (6) is working fine

    any advice ?

    thanks
    ben

     
  • Javier Paniza
    Javier Paniza
    2013-06-20

    Hi Ben,

    I tried it with Chrome 27.0.1453.110 (the yours) and it worked fine for me. I need to reproduce the problem in order to fix it.

    Please try it with other browsers (with the latest Firefox and Safari) and also with a current IE (8 and 9). And try it with a Chrome but from other computer. Tell me the results.

    When it fails in Chrome, which javascript errors are produced?


    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.