ICEfaces
  1. ICEfaces
  2. ICE-8161

ice:selectInputDate - ClassCastException thrown when using MyFaces

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P04
    • Fix Version/s: EE-1.8.2.GA_P05
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces EE 1.8.2 P04, MyFaces 1.1.5
    • Assignee Priority:
      P2
    • Workaround Exists:
      Yes
    • Workaround Description:
      Use the Sun/Mojarra JSF implementation

      Description

      When using the MyFaces JSF implementation with ICEfaces EE 1.8.2 P04 a ClassCastException is thrown when interacting with the ice:selectInputText component. This error is not thrown when using the Sun/Mojarra implementation.

      Here is the stack trace:

      java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date
      at com.icesoft.faces.component.selectinputdate.SelectInputDate.validate(SelectInputDate.java:1258)
      at javax.faces.component.UIInput.processValidators(UIInput.java:184)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
      at javax.faces.component.UIForm.processValidators(UIForm.java:73)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:627)
      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:149)
      at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:32)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #31542 Wed Oct 17 10:52:20 MDT 2012 deryk.sinotte ICE-8161: catch ClassCastExceptions like we do for ConverterExceptions but avoid further validation by the parent class
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.java

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: