[richfaces-issues] [JBoss JIRA] (RF-12012) rich:contextMenu re-render problem

Philip Maes (JIRA) jira-events at lists.jboss.org
Tue Feb 28 09:43:37 EST 2012


Philip Maes created RF-12012:
--------------------------------

             Summary: rich:contextMenu re-render problem
                 Key: RF-12012
                 URL: https://issues.jboss.org/browse/RF-12012
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-menu
    Affects Versions: 4.2.0.Final
         Environment: Apache Tomcat/7.0.23 , Mojarra 2.1.5, RichFaces 4.2.0.Final
            Reporter: Philip Maes
            Priority: Critical


I have a extendedDataTable with a contextMenu attached to it.
When the selection changes on the extendedDataTable, a a4j:jsFunction is called. This jsFunction renders the contextMenu.

{quote}
<rich:extendedDataTable id="dtLivingCosts"
			onselectionchange="selChange('dtLivingCosts')" 
...
</rich:extendedDataTable>

...

<a4j:jsFunction name="selChange" execute="@form"
	action="#{fhIndBean.selectionListener()}"
	status="none" render="dtLivingCosts, contextMenu_dtLivingCosts">
<a4j:param name="comp" assignTo="#{fhIndBean.tableId}" />
</a4j:jsFunction>

...

<rich:contextMenu id="contextMenu_dtLivingCosts" target="dtLivingCosts"
		attached="true" mode="ajax" >
...
</rich:contextMenu>
{quote}

The problem is that as soon as I right-click, the contextMenu appears, the ajax request is sent and received, the view is partially updated (dtLivingCosts, contextMenu_dtLivingCosts) and then the contextMenu disappears and won't appear anymore.

I noticed that the javascript code generated by RichFaces for the contextMenu is not rerendered as you can see on these two screenshots. The first one shows the code when the page is generated for the first time. The second one, when a right-click has been done on a row in the extendedDataTable:
http://img848.imageshack.us/img848/8876/cm1j.png
http://img19.imageshack.us/img19/5170/cm2c.png

A possible workaround is to refresh only menuItems of the contextMenu (https://issues.jboss.org/browse/RF-11973).

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