This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 3, 2011, 8:58 PM
3 Posts

Redirecting to a URL, how to put in new browser window

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Faces Redirect
  • Replies: 1
In the onChange of a comboBox I am using facesContext.getExternalContext().redirect... to redirect to a URL outside the application based on the combo value selected.  How can I get that URL to open in a new window/tab in the browser?  It currently opens in the same window.  Is there an equivalent to target="_blank"?
 
Thanks in advance for any suggestions... 
 
-John 
Jun 5, 2011, 7:52 PM
261 Posts
Re: Redirecting to a URL, how to put in new browser window
AFAIK you can only do server-side redirects in the same window.

To open a new window you could use some clientside script that performs a window.open(url) call.
 
Mark

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal