[richfaces-issues] [JBoss JIRA] Created: (RF-3419) contextMenu doesn't appears after specified event
Ilya Shaikovsky (JIRA)
jira-events at lists.jboss.org
Wed May 14 09:31:26 EDT 2008
contextMenu doesn't appears after specified event
-------------------------------------------------
Key: RF-3419
URL: http://jira.jboss.com/jira/browse/RF-3419
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
If you using demosite page without modifications - works ok.
But after I've added some components to page:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
.cent {
text-align: center;
}
.rich-menu-item {
text-align: left;
}
.rich-menu-group {
text-align: left;
}
</style>
<h:form>
<h:panelGrid columns="1" columnClasses="cent">
<h:panelGroup id="picture">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"
style="border : 5px solid #E4EAEF" />
<rich:contextMenu event="oncontextmenu" attachTo="pic"
submitMode="none">
<rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"></rich:menuItem>
<rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"></rich:menuItem>
</rich:contextMenu>
</h:panelGroup>
</h:panelGrid>
<script type="text/javascript">
function enlarge(){
document.getElementById('pic').width=document.getElementById('pic').width*1.1;
document.getElementById('pic').height=document.getElementById('pic').height*1.1;
}
function decrease(){
document.getElementById('pic').width=document.getElementById('pic').width*0.9;
document.getElementById('pic').height=document.getElementById('pic').height*0.9;
}
</script>
<rich:panel id="panel">
<h:outputText value="panel" />
</rich:panel>
<rich:contextMenu attached="true" attachTo="panel" event="onclick">
<rich:menuItem value="Item 1" />
</rich:contextMenu>
</h:form>
</ui:composition>
second menu appears ok. But the first menu for pic appears only after double right click and doesn't appears after single right click anymore.
If you'll remove last panel and menu for this panel - first menu will works ok again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list