[richfaces-issues] [JBoss JIRA] (RF-12332) rich:contextMenu clipped by parent tich:tree node

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Jul 24 18:22:07 EDT 2012


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

Brian Leathem updated RF-12332:
-------------------------------

      Fix Version/s: 4.3-Tracking
    Forum Reference: https://community.jboss.org/message/741815  (was: https://community.jboss.org/message/741815)

    
> rich:contextMenu clipped by parent tich:tree node
> -------------------------------------------------
>
>                 Key: RF-12332
>                 URL: https://issues.jboss.org/browse/RF-12332
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu, component-tree
>    Affects Versions: 4.2.2.Final
>         Environment: RichFaces 4.2.2.Final
> Unknown version of JSF
> JBoss Web 7.0.13.Final
> Java(TM) SE Runtime Environment 1.6.0_31-b04 @ Linux
> Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
>            Reporter: Pawel Zmarlicki
>            Assignee: Brian Leathem
>             Fix For: 4.3-Tracking
>
>         Attachments: richfaces-sandbox.zip, rich_tree-rich_contextMenu.png
>
>
> A rich:contextMenu is not working correctly when used with rich:tree.  For example, consider the following:
> {code}
> <rich:tree id="tree" var="node"
>            toggleType="ajax" toggleListener="#{node.onNodeToggle}"
>            selectionType="ajax" selectionChangeListener="#{myBean.onNodeSelection}">
>   <rich:treeModelRecursiveAdaptor roots="#{myBean.treeRoots}" nodes="#{node.childNodes}">
>     <rich:treeNode id="treeNode">
>       <h:panelGrid columns="2" border="0" cellpadding="0px" cellspacing="0px">
>         <h:graphicImage value="/images/data_icon.gif" />
>         <h:outputText value="#{node.data.id}" />
>       </h:panelGrid>
>       <rich:contextMenu attached="true" target="treeNode" mode="ajax">
>         <rich:menuItem label="#{node.data.id}" disabled="true"/>
>         <rich:menuItem label="Show" mode="server" action="#{myBean.show}"/>
>       </rich:contextMenu>
>     </rich:treeNode>
>   </rich:treeModelRecursiveAdaptor>
> </rich:tree>
> {code}
> When the context menu coded as above is rendered, it is clipped by the borders of its parent tree node, so I can only see a narrow band corresponding to the topmost portion of the menu.  I see enough to verify that the label of the first menu item has correct value
> If I move rich:contextMenu to outside of rich:tree, the menu is rendered only at the initial right-click.  After that, I see only the browser's context menu.  After some experimentation,  I've added render="@form" to rich:treeNode.
> Either way, I still get an occasional script error 'this.popup' is null or not an object, after expanding a tree node.

--
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

        


More information about the richfaces-issues mailing list