This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes Richfaces context menu is triggering itself Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces context menu is triggering itself" Watch "Richfaces context menu is triggering itself" New topic
Author

Richfaces context menu is triggering itself

J Miller
Ranch Hand

Joined: Oct 21, 2010
Posts: 63
I’m having some trouble with a rich:context menu. It’s functionally working, it just has a strange side-effect. I have a dataGrid, and each name in the name column is a link that produces a context menu when clicked. The context menu allows you to see details or cancel. When you click a menuItem, it performs the task it should, but the context menu hides and shows again. It’s like clicking a menuItem in the context menu is triggering the context menu again. I’m nesting the context menu inside the commandLink as shown below. Any ideas?


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

I can't really say, but what you are coding is a set of JavaScript function calls (detailsRedirect, cancelBatchJob) that will be called BEFORE the actual AJAX submit for the related menu is done and the parmeters passed to those JavaScript funcitons calls will be the value of the job id WHEN THE PAGE WAS LOADED (it's not dynamically updated).

So if that isn't what you'd intended, keep it in mind.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Richfaces context menu is triggering itself
 
Similar Threads
rich:menuGroup issue
rich:dataTable sorting issue (AJAX) + rich:datascroller does not go passed page 2
Trouble with ContextMenu and ModalPanel of RichFaces
JSF UiComponent help required
h:outputLink link area in menu item too small - is there a workaround?