MyFaces Core
  1. MyFaces Core
  2. MYFACES-2177

ConvertDateTimeTag timeZone does not work with ValueExpression of return type String


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.6
    • Fix Version/s: 1.2.7
    • Component/s: None
    • Labels:


      A always get an exception like this when I bind a VE avaluating to a TimeZone pattern (GMT+1) to the timeZone property of the convertDateTime converter:
      java.lang.IllegalArgumentException: Cannot convert GMT+1 of type class java.lang.String to class java.util.TimeZone

      This worked for MyFaces 1.1 and since we are currently migrating this breaks our code.

      I believe the root cause for this problem is the definition of the convertDateTimeTag in the myfaces tld, which will never allow VE with return types other than java.util.TimeZone to be bound:


      <description><![CDATA[The time zone to use instead of GMT (the default timezone). When
      this value is a value-binding to a TimeZone instance, that
      timezone is used. Otherwise this value is treated as a String
      containing a timezone id, ie as the ID parameter of method







        Philipp Schoepf created issue -
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 1.2.7-SNAPSHOT [ 12313612 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.2.7 [ 12314012 ]
        Fix Version/s 1.2.7-SNAPSHOT [ 12313612 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]


          • Assignee:
            Leonardo Uribe
            Philipp Schoepf
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: