ICEfaces
  1. ICEfaces
  2. ICE-5267

panelCollapsible is resetting the visible property for a panelGroup

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.2-EE-GA
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      Use case: A panelGroup is using the effects SlideUp and SlideDown to show and hide the panel. This panelGroup is also in a panelCollapsible component. The recommended method to use the effect is to have the effect control the visibility of the panel. Therefore the visible attribute is set to false. When a link is clicked to show this panel it works fine.

      The issue is that when the panelCollapsible is contracted and then expanded the visible attribute seems to be reset to its false state, even when the panel has been shown. This leads to an issue where the effects are not in sync.

      This also seems to be an issue with the panelTabSet: http://www.icefaces.org/JForum/posts/list/11465.page

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case. main2.jspx has the scaled down test case that shows this issue. To replicate, click on the show link in the panelCollapsible. Then contract and expand the panelCollapsible. The link will be displayed as show but the panel will SlideUp. The backing bean and the page code are out of sync.

        Show
        Arran Mccullough added a comment - Attached test case. main2.jspx has the scaled down test case that shows this issue. To replicate, click on the show link in the panelCollapsible. Then contract and expand the panelCollapsible. The link will be displayed as show but the panel will SlideUp. The backing bean and the page code are out of sync.
        Hide
        Adnan Durrani added a comment -

        Can you please attach source of the bean.

        Show
        Adnan Durrani added a comment - Can you please attach source of the bean.
        Hide
        Adnan Durrani added a comment -

        Its not related to the panelCollapsible or any other component. Its due to the reason that effects change the visible property on the client side and server doesn't know anything about it. So when the component that has changed by the Effect is part of the domUpdate, it gets rerender according to its visibility property.

        Show
        Adnan Durrani added a comment - Its not related to the panelCollapsible or any other component. Its due to the reason that effects change the visible property on the client side and server doesn't know anything about it. So when the component that has changed by the Effect is part of the domUpdate, it gets rerender according to its visibility property.
        Hide
        Adnan Durrani added a comment -

        Its not a bug, Its just they way component works. It could be fixed under an enhancement. Do we want to add this enhancement?

        Show
        Adnan Durrani added a comment - Its not a bug, Its just they way component works. It could be fixed under an enhancement. Do we want to add this enhancement?

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: