Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
Description
A modal popup is set to draggable and is displayed on load of a page. On the popup there is a command button that will hide the popup when clicked by setting its visible property to false. This works fine unless the popup is dragged. This seems to be setting the visible property to true on all submits. If for example the popup is part of a panelTab navigating to another tab and then back to the first tab will show the popup when it should of been set to false from closing the popup. This behavior is also replicated in navigating to another page when the popup is part of a facelets template. In this case if the popup is not dragged then the popup does not re-appear, but if the popup is dragged it re-appears on every page that is navigated to. I have been able to reproduce this issue in a facelets example and a non-facelets example.
Debugging of the setter/getter for the visible object:
Without being dragged:
Page load:
isPopupVisible:true
isPopupVisible:true
isPopupVisible:true
Click OK button (hide popup)
isPopupVisible:false
isPopupVisible:false
isPopupVisible:false
Click on new tab:
isPopupVisible:false
isPopupVisible:false
isPopupVisible:false
With dragging popup:
Page load:
isPopupVisible:true
isPopupVisible:true
isPopupVisible:true
Dragged popup:
setPopupVisible:true
isPopupVisible:true
isPopupVisible:true
isPopupVisible:true
Click OK button (hide popup):
setPopupVisible:true
isPopupVisible:false
isPopupVisible:false
isPopupVisible:false
Click on new tab:
setPopupVisible:true
isPopupVisible:false
isPopupVisible:false
isPopupVisible:false
Click back to first tab:
setPopupVisible:true
isPopupVisible:true
isPopupVisible:true
isPopupVisible:true