[ 
https://issues.jboss.org/browse/RF-12165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Leathem updated RF-12165:
-------------------------------

         Assignee: Brian Leathem
    Fix Version/s: 4.3-Tracking
      Component/s: component-menu


With RichFaces 4.2.1.CR1, we introduced the attribute _targetSelector_ (see 
RF-11936) which allows one to override the jQuery selector used to bind the 
contextMenu show event.  However, that selector currently only applies when 
used inside an EDT.  This selector should be used more generally to allow 
attaching the contextMenu.
                
> [rich:contextMenu] add a 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) 
>          Components: component-menu
>    Affects Versions: 4.2.1.CR1
>            Reporter: Rene O
>            Assignee: Brian Leathem
>             Fix For: 4.3-Tracking
>
>
> 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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to