wood burning stoves 2.0*
The moose likes JSF and the fly likes Opening a new browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Opening a new browser window" Watch "Opening a new browser window" New topic
Author

Opening a new browser window

Michael Zellmann
Greenhorn

Joined: Dec 17, 2004
Posts: 18
In my application, a user has chosen a news feed from a list of options. I can get that chosen url into an action method or action listener. I want to open a new browser window on the client's machine and display the selected news feed there. I also want to show a refreshed page in the original browser window. I am not sure how to accomplish this. Any guidance would be appreciated.
John Blanco
Greenhorn

Joined: Jan 13, 2005
Posts: 20
JavaScript's window.open()?
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
JavaScript window.open() works fine with JSF.

Only you need to name the url like *.faces for activating the Faces Servlet

Good luck


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
 
subject: Opening a new browser window