This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 67
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: 15947
    
  19

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
Trouble with ContextMenu and ModalPanel of RichFaces
rich:dataTable sorting issue (AJAX) + rich:datascroller does not go passed page 2
rich:menuGroup issue
h:outputLink link area in menu item too small - is there a workaround?
JSF UiComponent help required