ICEfaces
  1. ICEfaces
  2. ICE-3946

Add displayListener to MenuPopup

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1
    • Fix Version/s: 1.7.2-SP2, 1.8RC1, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      There is a dynamic MenuPopup where menu items are rendered according to the type of tree node clicked. Each type of tree node can have different menu items available and therefore need to be able to reference the calling node so that it can determine which menuItems to render. The current difficulty is that you cannot get a reference to the calling node unless it is clicked. The new feature request would be add a server round trip to the menuPopup component (ie. actionListener) which would be where the pre-processing of which menuItems to render would be done.

        Activity

        Hide
        Adnan Durrani added a comment -

        Trunk revision: 18198

        The displayListener added to the MenuPopup component.

        By default the menuPopup doesn't cause any submit when displayed by the right click, that is why its contents can be static only but it could be dynamic by just registering the displayListener on it. The displayEvent gives the target component as well as the clientId of the target component in form of contextValue, which then can be use to produce dynamic contents.

        Show
        Adnan Durrani added a comment - Trunk revision: 18198 The displayListener added to the MenuPopup component. By default the menuPopup doesn't cause any submit when displayed by the right click, that is why its contents can be static only but it could be dynamic by just registering the displayListener on it. The displayEvent gives the target component as well as the clientId of the target component in form of contextValue, which then can be use to produce dynamic contents.
        Hide
        Adnan Durrani added a comment -

        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java
        Completed: At revision: 18282

        Show
        Adnan Durrani added a comment - Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java Completed: At revision: 18282
        Hide
        Arran Mccullough added a comment -

        There seems to be an issue with using Facelets. When the Facelets view-handler and jar file is added the displayListener is not called. On right click of the panelGroup. The menuPopup is shown but the display event is not fired.

        Show
        Arran Mccullough added a comment - There seems to be an issue with using Facelets. When the Facelets view-handler and jar file is added the displayListener is not called. On right click of the panelGroup. The menuPopup is shown but the display event is not fired.
        Hide
        Arran Mccullough added a comment -

        Test case for issue with Facelets. Built to be deployed on Tomcat 6.0.

        Show
        Arran Mccullough added a comment - Test case for issue with Facelets. Built to be deployed on Tomcat 6.0.
        Hide
        Mark Collette added a comment -

        Added support for Facelets to handle the displayListener property on menuPopup.

        Subversion 18333
        icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java

        Show
        Mark Collette added a comment - Added support for Facelets to handle the displayListener property on menuPopup. Subversion 18333 icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java
        Hide
        Adnan Durrani added a comment -

        Changes reverted from the branch 1.7

        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml
        Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js
        Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java
        Completed: At revision: 18345

        Show
        Adnan Durrani added a comment - Changes reverted from the branch 1.7 Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml Modified: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-menuPopup-props.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component-metadata\src\main\resources\conf\custom\menuPopup-component.xml Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\bridge\component\menu.js Sending content: D:\work\development\freshcopy\svn\ossrepo\icefaces\branches\icefaces-1.7\icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupRenderer.java Completed: At revision: 18345

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: