ICEfaces
  1. ICEfaces
  2. ICE-3915

Cannot create PanelCollapsible component programmatically, receive ClassCastException

    Details

    • Workaround Exists:
      Yes
    • Workaround Description:
      The PanelCollapsible class has a typo when it defines the component type. Instead of defining COMPONENT_TYPE, it defines the public static variable COMPONENET_TYPE. If you use the typo variable, it works.

      Description

      The following line in our application fails:

      PanelCollapsible panel = (PanelCollapsible) FacesContext.getCurrentInstance().getApplication().createComponent(PanelCollapsible.COMPONENT_TYPE);

      The exception received is

      java.lang.ClassCastException: javax.faces.component.UICommand cannot be cast to com.icesoft.faces.component.panelcollapsible.PanelCollapsible
      1. ICE-3915-1.8.2.patch
        4 kB
        Ed Hillmann
      2. issue_ICE_3915_1-7-2-sp1.patch
        10 kB
        Ed Hillmann

        Activity

        Ed Hillmann created issue -
        Ed Hillmann made changes -
        Field Original Value New Value
        Attachment issue_ICE_3915_1-7-2-sp1.patch [ 11423 ]
        Tyler Johnson made changes -
        Salesforce Case [5007000000A77s4]
        Ken Fyten made changes -
        Fix Version/s 1.8.3 [ 10211 ]
        Ed Hillmann made changes -
        Attachment ICE-3915-1.8.2.patch [ 12034 ]
        Ken Fyten made changes -
        Assignee Priority P2
        Assignee Yip Ng [ yip.ng ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-EE-Beta [ 10215 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-EE-GA [ 10216 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Yip Ng [ yip.ng ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ed Hillmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: