Rene O created RF-12165:
---------------------------
Summary: [rich:contextMenu] add an selector-attribute to control where
contextmenu should not appear within child elements of target
Key: RF-12165
URL:
https://issues.jboss.org/browse/RF-12165
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 4.2.1.CR1
Reporter: Rene O
Simplified usecase:
I have a panel where a contextmenu is attached. Within this panel there is an input field
where the contextmenu should not appear if i right-click there. Contextmenu should only
appear if i right click within panel.
{code:title=simplified usecase}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<title>JSF Test</title>
</h:head>
<h:body>
<h:form id="formA">
<h:panelGroup id="panel" layout="block"
style="width:400px;height:200px;background-color:#CCCCCC">
right click for context-menu
<br/><br/>
<h:inputText id="myinput" value="context-menu should not appear if
you right click input field" style="width:300px;"/>
</h:panelGroup>
<rich:contextMenu id="myContext" attached="true"
target="panel" mode="client">
<rich:menuItem id="contextTest">
Test
</rich:menuItem>
</rich:contextMenu>
</h:form>
</h:body>
</html>
{code}
I need the possibility to say that the contextmenu is attached to the panel but not to
other child elements (input fields for example):
<rich:contextMenu target="panel" exclude=":input" >
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira