ICEfaces
  1. ICEfaces
  2. ICE-3053

panelPositioned not working with Acegi configuration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      NA

      Description

      Can not get panelPositioned to work with Acegi configuration. Other components on the same page (panelCollapsible, inputText etc) work fine.

      May 6, 2008 10:24:17 AM com.icesoft.faces.component.panelpositioned.PanelPositionedRenderer encodeChildren
      SEVERE: Encode Children
      java.lang.ClassCastException: [Lcom.icesoft.icefaces.samples.PostionedPanelPerson;
      at com.icesoft.faces.component.panelpositioned.PanelPositionedRenderer.encodeChildren(PanelPositionedRenderer.java:190)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:353)
      at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
      at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:629)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:566)

        Issue Links

          Activity

          Mandeep Hayher created issue -
          Mandeep Hayher made changes -
          Field Original Value New Value
          Link This issue blocks ICE-3022 [ ICE-3022 ]
          Ken Fyten made changes -
          Component/s Components [ 10012 ]
          Fix Version/s 1.7.2 [ 10130 ]
          Assignee Priority P2
          Security Private [ 10001 ]
          Assignee Mark Collette [ mark.collette ]
          Ken Fyten made changes -
          Fix Version/s 1.7.2RC1 [ 10140 ]
          Fix Version/s 1.7.2 [ 10130 ]
          Hide
          Mark Collette added a comment -

          Is there a test case for this?

          Show
          Mark Collette added a comment - Is there a test case for this?
          Mark Collette made changes -
          Assignee Mark Collette [ mark.collette ] Mandeep Hayher [ mandeep.hayher ]
          Hide
          Mandeep Hayher added a comment -

          Yes, You can use ICE-3022 in the repo to test this.

          Show
          Mandeep Hayher added a comment - Yes, You can use ICE-3022 in the repo to test this.
          Mandeep Hayher made changes -
          Assignee Mandeep Hayher [ mandeep.hayher ] Mark Collette [ mark.collette ]
          Ken Fyten made changes -
          Fix Version/s 1.7.2 [ 10130 ]
          Fix Version/s 1.7.2RC1 [ 10140 ]
          Ken Fyten made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Priority P2
          Resolution Fixed [ 1 ]
          Hide
          Ken Fyten added a comment -

          This is still failing regression testing on Glassfish v2 only.

          failed on glassfish. When tested it manually, it could not be deployed to the local host. The following error shows in the log file: Error loading deployment descriptors for module ICE-1816 Line 83 Column 19 – Deployment descriptor file WEB-INF/web.xml in archive ICE-1816. Element type "dispatcher" must be declared.

          Summary

          renderedOnUserRole doesn't work with panelCollapsible

          environment: ACEGI 1.0.1

          The renderedOnUserRole attribute has no effect at all, the panels within the
          panelAccordion component get rendered no matter which role is specified.
          Steps Expected Results

          1. Load test application
          2. Log in use steve/icefaces as username/password
          3. Verify panelCollapsible is present
          4. Expand the collapsible panel
          5. Verify that the panel did expand
          6. Collapse the collapsible panel
          7. Verify that the panel did collapse

          • The component can behaves as though not using the attribute
          • The component is disabled when not using correct user role
          Show
          Ken Fyten added a comment - This is still failing regression testing on Glassfish v2 only. failed on glassfish. When tested it manually, it could not be deployed to the local host. The following error shows in the log file: Error loading deployment descriptors for module ICE-1816 Line 83 Column 19 – Deployment descriptor file WEB-INF/web.xml in archive ICE-1816 . Element type "dispatcher" must be declared. Summary renderedOnUserRole doesn't work with panelCollapsible environment: ACEGI 1.0.1 The renderedOnUserRole attribute has no effect at all, the panels within the panelAccordion component get rendered no matter which role is specified. Steps Expected Results 1. Load test application 2. Log in use steve/icefaces as username/password 3. Verify panelCollapsible is present 4. Expand the collapsible panel 5. Verify that the panel did expand 6. Collapse the collapsible panel 7. Verify that the panel did collapse The component can behaves as though not using the attribute The component is disabled when not using correct user role
          Ken Fyten made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Priority P1
          Hide
          Ken Fyten added a comment -

          This problem is related to the test app. config. not specifying the correct Servlet spec. version in the DOCTYPE. Glassfish validates this but Tomcat and others do not seem to. The fix involved changing the DOCTYPE to:

          <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2eeweb-app_2_4.xsd"
          version="2.4" >

          Show
          Ken Fyten added a comment - This problem is related to the test app. config. not specifying the correct Servlet spec. version in the DOCTYPE. Glassfish validates this but Tomcat and others do not seem to. The fix involved changing the DOCTYPE to: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2eeweb-app_2_4.xsd" version="2.4" >
          Ken Fyten made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Assignee Priority P1
          Resolution Fixed [ 1 ]
          Assignee Mark Collette [ mark.collette ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Mandeep Hayher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: