[richfaces-issues] [JBoss JIRA] (RF-11973) rich:contextMenu - after ajax re-render of table contextMenu no longer works

Gavin Lussi (JIRA) jira-events at lists.jboss.org
Wed Sep 26 06:04:35 EDT 2012


    [ https://issues.jboss.org/browse/RF-11973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721764#comment-12721764 ] 

Gavin Lussi edited comment on RF-11973 at 9/26/12 6:03 AM:
-----------------------------------------------------------

I, too, get the exact same problem as Brendan/Philip when including the id of the context menu in a render list. 

The current "work around" isn't a work around, so I currently have no way to construct a menu with dynamically loaded options depending on which row in a table is right clicked.

(Also, we aren't using any c:foreach, so that isn't the problem in my case)
                
      was (Author: gmlussi):
    I, too, get the exact same problem as Brendan/Philip when including the id of the context menu in a render list. 

The current "work around" isn't a work around, so I currently have no way to construct a menu with dynamically loaded options depending on which row in a table is right clicked.
                  
> rich:contextMenu - after ajax re-render of table contextMenu no longer works
> ----------------------------------------------------------------------------
>
>                 Key: RF-11973
>                 URL: https://issues.jboss.org/browse/RF-11973
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.2.0.CR1
>         Environment: chrome browser / glassfish 3.1.1 / mojarra 2.1.6
>            Reporter: Brendan Healey
>             Fix For: 4.3-Tracking
>
>
> With the following code structure, when the page is first rendered
> you can right click on a row in the table and the context menu appears.
> After pushing the commandButton subsequent right clicks show the
> default browser right click menu, and not the context menu.
> {code}
> <rich:extendedDataTable id="mytable">
>   ...
> </rich:extendedDataTable>
> <a4j:commandButton value="push" render="mytable"/>
> <rich:contextMenu target="mytable" mode="ajax">
>                 <rich:menuItem label="Delete"
>                                mode="ajax"
>                                onclick="alert('hello, world!')"/>
> </rich:contextMenu>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list