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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19906 Wed Dec 09 11:26:13 MST 2009 adnan.durrani 1.8.2EE changes(ICE-3915) moved to Compat towards ICE-4481
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/gmap/GMap.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/panelcollapsible/PanelCollapsible.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/panelpositioned/PanelPositioned.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/InputRichText.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/effect/ApplyEffect.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19497 Mon Oct 26 11:36:09 MDT 2009 yip.ng ICE-3915: Fixed typo of component type constant.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputrichtext/InputRichText.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpositioned/PanelPositioned.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/effect/ApplyEffect.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelcollapsible/PanelCollapsible.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/gmap/GMap.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: