| Author |
Richfaces context menu is triggering itself
|
J Miller
Ranch Hand
Joined: Oct 21, 2010
Posts: 62
|
|
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: 14475
|
|
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.
|
 |
 |
|
|
subject: Richfaces context menu is triggering itself
|
|
|