Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2 SP1
-
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.
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.