You can do this with JSCookMenu straight out of the box, however our MyFacesHack.js disables it. We have special handling to take the action element and manipulate it in the form to set the jscookaction variable. JSCookMenu out of the box takes the action element of the menu item and executes window.open() on it, causing it to be evaluated, and allowing you to specify a URL or JavaScript there.
The only thing I can think of would be to put some kind of separator in the action that we pull apart and exec that code and depending on the result go on to set the jscookmenu action and submit it. Anyone else have any ideas? Anyone else want something like this? ---------------------------------------------- Neal Haggard Senior Systems Developer Knowledge Management Center SAS Institute -----Original Message----- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 5:08 PM To: MyFaces Discussion Subject: Re: Alternatives for onclick for NavigationMenuItem Hi, The JSF JSCookMenu component is basically a wrapper around the jscookmenu javascript library. Does that library have the functionality you desire? If not, I would suggest contacting the jscookmenu project first, and seeing whether it can be added there. I wouldn't like to see the actual menu implementation provided by MyFaces diverge from the upstream library; that will just make merging future upstream patches difficult. Cheers, Simon

