voyent
Context menu simulation using the ace:menu component  XML
Forum Index -> General Help
Author Message
Maksim_A

Joined: 27/Feb/2018 02:01:24
Messages: 18
Offline


I tried to do it as in the example, but it did not help. The menu is displayed in the lower left corner and does not close after clicking on the component. My code:
Code:
<ace:menu id="webDesktopPopup" position="dynamic" triggerEvent="rtclick" type="tiered">
  					<c:forEach var="menuItem" items="${popupMenuBean.menuItems}">
  						<ace:menuItem value="#{menuItem.value}" actionListener="#{popupMenuBean.actionPerformed}" icon="#{menuItem.icon}"
  									  rendered="#{menuItem.childCount == 0}">
  						</ace:menuItem>
  							<ace:submenu rendered="#{menuItem.childCount > 0}" label="#{menuItem.value}">
  								<c:forEach var="subMenuItem" items="${menuItem.children}">
  									<ace:menuItem value="#{subMenuItem.value}" actionListener="#{popupMenuBean.actionPerformed}">
  									</ace:menuItem>
  								</c:forEach>
  							</ace:submenu>
  					</c:forEach>
  				</ace:menu>

How can i imitate the work of popup menu? And how to make the menu appear where the mouse button was pressed? I tried to use this example http://icefaces-showcase.icesoft.org/showcase.jsf?grp=ace:menu&exp=As%20Popup but it did not work.
Maksim_A

Joined: 27/Feb/2018 02:01:24
Messages: 18
Offline


Is it really impossible to emulate a job the ace:contextMenu component?
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team