ICEfaces
  1. ICEfaces
  2. ICE-2699

menuPopup use panelGroup.contextValue

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#3
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: ICE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      All
    • Affects:
      Sample App./Tutorial

      Description

      Because of panelTooltip, panelGroup now has a contextValue attribute, for identifying the model values that the panelGroup shows within itself. So, we're unifying how panelTooltip and menuPopup work, by getting rid of all the menuContext stuff, and replacing it with contextValue.

        Activity

        Hide
        Mark Collette added a comment -

        Now, when you context-click on a panelGroup, and select a menuItem from the menuPopup, you will get a ContextActionEvent in the menuItem's actionListener, which provides the contextValue from that panelGroup.

        I've also pulled out all mention of menuContext, and tweaked some of the panelTooltip stuff, including the code to make displayListener work with Facelets.

        The menuPopup examples in the component-showcase have been updated to use ContextActionEvent and contextValue.

        Subversion 15704
        icefaces\component-metadata\src\main\resources\conf\extended-faces-config.xml
        icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-panelPositioned-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-panelSeries-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-paneltabset-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-paneltooltip-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-dataTable-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-panelGroup-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-uicolumn-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-uicolumns-props.xml
        icefaces\component\src\com\icesoft\faces\component\ext\HtmlPanelGroup.java
        icefaces\component\src\com\icesoft\faces\component\ext\UIColumn.java
        icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java
        icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java
        icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java
        icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java

        icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\menuBar\MenuBarBean.java
        icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\table\ColumnsBean.java
        icefaces\samples\component-showcase\web\inc\components\menuBar.jspx
        icefaces\samples\component-showcase\web\inc\components\tableColumns.jspx

        icefaces\component\src\com\icesoft\faces\component\ContextActionEvent.java
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-att-contextValue-props.xml
        icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-att-displayListener-props.xml

        Show
        Mark Collette added a comment - Now, when you context-click on a panelGroup, and select a menuItem from the menuPopup, you will get a ContextActionEvent in the menuItem's actionListener, which provides the contextValue from that panelGroup. I've also pulled out all mention of menuContext, and tweaked some of the panelTooltip stuff, including the code to make displayListener work with Facelets. The menuPopup examples in the component-showcase have been updated to use ContextActionEvent and contextValue. Subversion 15704 icefaces\component-metadata\src\main\resources\conf\extended-faces-config.xml icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-panelPositioned-props.xml icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-panelSeries-props.xml icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-paneltabset-props.xml icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-paneltooltip-props.xml icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-dataTable-props.xml icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-panelGroup-props.xml icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-uicolumn-props.xml icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-uicolumns-props.xml icefaces\component\src\com\icesoft\faces\component\ext\HtmlPanelGroup.java icefaces\component\src\com\icesoft\faces\component\ext\UIColumn.java icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopup.java icefaces\component\src\com\icesoft\faces\component\menupopup\MenuPopupHelper.java icefaces\component\src\com\icesoft\faces\component\panelseries\UISeries.java icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\menuBar\MenuBarBean.java icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\table\ColumnsBean.java icefaces\samples\component-showcase\web\inc\components\menuBar.jspx icefaces\samples\component-showcase\web\inc\components\tableColumns.jspx icefaces\component\src\com\icesoft\faces\component\ContextActionEvent.java icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-att-contextValue-props.xml icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-att-displayListener-props.xml

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: