myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <simon.kitch...@rhe.co.nz>
Subject jscookmenu and links (not actions)
Date Thu, 29 Mar 2007 06:00:15 GMT
Hi,

I'd like to have a jscookmenu entry that loads a url into a popup window 
rather than perform a submit.

The file MyFacesHack.js appears to be making an effort to allow this in 
function cmItemMouseUp:

if (link != null)
{
     if (link.match(/^\w*:A\]\w*:\/\//) != null ) {
         // Link is a URL
         link = link.replace(/^\w*:A\]/, "");  // Remove JSF ID
         window.open (link, target);
     } else if (link.match(/^\w*:A\]\w*:/) != null ) {
         // Link is a script method
         ....
     } else {
         // Link is a JSF action
         ....


However I can't figure out what I need to put in my JSP file (ie the 
t:navigationMenuItem tags) to get that "Link is a URL" block to trigger.

Can anyone enlighten me?

BTW, I'm using tomahawk 1.1.3 + JSP.

Thanks,

Simon

Mime
View raw message