From jira-events at lists.jboss.org Fri Mar 23 01:21:48 2012 Content-Type: multipart/mixed; boundary="===============8289500816535115484==" MIME-Version: 1.0 From: Brian Leathem (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11967) rich:contextMenu can't be attached to body Date: Fri, 23 Mar 2012 01:21:48 -0400 Message-ID: <2146348531.27362.1332480108876.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 597989296.31587.1328723868544.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============8289500816535115484== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11967?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-11967: ------------------------------- Fix Version/s: 4.Future (was: 4.2.1.CR1) Workaround Description: = Wrap your content in a top level div, as in: {code} .... {code} This is currently not possible, as the parent is looked up by id. The id i= s then fed into document.getElementById before being fed to jQuery as a sel= ector, to overcome the JSF id separator problem with jQuery. However, docu= ment.getElementById returns null when you try to look up the body by id. To overcome this, we will have to come up with a better means of looking up= and attaching to the parent. See the workaround of introducing an extra div in your html to hold the con= textMenu. = > rich:contextMenu can't be attached to body > ------------------------------------------ > > Key: RF-11967 > URL: https://issues.jboss.org/browse/RF-11967 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-menu > Affects Versions: 4.2.0.CR1 > Reporter: Rene O > Assignee: Brian Leathem > Fix For: 4.Future > > > I haved tried to attach the contextMenu to the body element > {code:title=3Dexample.xhtml} > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich"> > = > = > example = > > = > = > > = > > > contextMenuItem > = > > > > {code} > The contextMenu only appears if i right-click the outputText. If i right-= click somewhere else inside the page the contextMenu doesn't appear. I thin= k, that this is a bug. I want the contextMenu all over the site. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============8289500816535115484==--