This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Link in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Link in jsf" Watch "Link in jsf" New topic

Link in jsf

Shruthi Sam
Ranch Hand

Joined: Jul 09, 2008
Posts: 73
I have a link in my jsf page. If i click that link it has to show a pop up containing some static content. The static content is a jsp. Is it possible to show that jsp as a pop up on click of that link. or is there any other way we can do the same. Please let me know your suggestions.

Thank you
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961

First disclaimer: I have my "pop ups" set up to open in new tabs, not new windows.

Second disclaimer: I really find pop-ups annoying except when there's absolutely no other viable way of displaying information.

You can open a secondary window (or tab) by using the "target" attribute. It's available on the commandLink element, but not on commandButton.

Customer surveys are for companies who didn't pay proper attention to begin with.
Shruthi Sam
Ranch Hand

Joined: Jul 09, 2008
Posts: 73
Hi Tim,

Thanks for the reply. I tried target attribute and not able to get the desired result. I tried the below one.

Now am getting the popup window. But Guide.faces showing blank. I have the jsp with name Guide.jsp. Please let me know if there is anything else i need to configure to get the page content.
I agree. Here's the link:
subject: Link in jsf
Similar Threads
How Can I Show a jQuery dialog after a hyperlink has been clicked
pop up window focus
How to open pop-up
Generating pop up in JSF
how to redirect request on click of a button.