from what I've seen if you put any EL in the action field it will try to use
the outcome with jsf's navigation system... so I don't think any JS would
work like that.. and there is not much you can do about it because you would
have to specify if what you are returning from the backing bean is to be
interpreted for navigation rules or just as a plain URL...
On 3/29/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Does the attribute take a value binding? Maybe a temporary workaround
would be to return javascript that navigates to a url.
The pattern to match looks like it might be
(/^\w*:A\]\w*:\/\//) != null ) {
start-of-string any-number-of-alphanumerics colon A ]
any-number-of-alphanumerics colon W
blahblahblah:A]blahblahblah:W
Weird. Maybe I'm missreading it.
On 3/29/07, Sorin Silaghi <[EMAIL PROTECTED]> wrote:
> if you just want a static URL it's easy ... you can put it in the action
> field. You can even put JS in there so that you get the pop-up you want.
The
> problem appears if you want it to be dynamic. For example if you want to
> generate the URL in the backing bean you have to find another way. I'm
> trying to do the same thing but don't have a solution yet. I need the
link
> to be outside my web app but untill now I've only been able to redirect
> inside the JSF app
>
>
> On 3/29/07, Simon Kitching <[EMAIL PROTECTED]> wrote:
> > 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
> >
>
>