• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Richfaces context menu is triggering itself

 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic