ICEfaces
  1. ICEfaces
  2. ICE-6413

REGRESSION: Modal panelPopup not removing modality when "rendered=false" is set.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2-EE-GA_P02, 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Bridge, ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces2/trunk, ICEfaces/trunk
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      The workaround is to just use the visible tag and not the rendered tag for the ice:panelPopup component. So your code would be:

       <ice:panelPopup visible="#{BusinessInfoBean.showBusinessFinder}" autoCentre="true" modal="true">
      Show
      The workaround is to just use the visible tag and not the rendered tag for the ice:panelPopup component. So your code would be:  <ice:panelPopup visible="#{BusinessInfoBean.showBusinessFinder}" autoCentre="true" modal="true">

      Description

      This seems to be a regression from changes made in ICE-5652. Previously, if an application had a modal panelPopup displayed and set "rendered=false", it would remove the modality layer and the popup. Now, the modality layer is not cleared.

        Activity

        Hide
        Mircea Toma added a comment -

        Introduced callback registration mechanism for notifying about DOM element removal. ice.onElementRemoval(id, callback) function allows registering a callback that will be eventually executed when the element with the specified ID is removed from the DOM document.

        Used this new mechanism in panel popup renderer to setup a callback for running the modal cleanup code when the popup stops being rendered.

        Show
        Mircea Toma added a comment - Introduced callback registration mechanism for notifying about DOM element removal. ice.onElementRemoval(id, callback) function allows registering a callback that will be eventually executed when the element with the specified ID is removed from the DOM document. Used this new mechanism in panel popup renderer to setup a callback for running the modal cleanup code when the popup stops being rendered.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: