Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to open the url in a new tab of the Browser

918581Oct 15 2012 — edited Oct 15 2012
Hi ,

Am using jdev 11.1.1.2.1

I have a commandLink in a jsff page and on click of that i want to open a new tab with the url given in the action listener.

I have the action listener code below:

FacesContext fctx = FacesContext.getCurrentInstance();
ExternalContext ectx = fctx.getExternalContext();
Url="/faces/Home.jspx";
ectx.redirect(Url);

For now it is redirecting in the same window and so wen i press the back button in the browser the session gets invalidated ,

so i want to open it in a new tab.

Please help.

Thanks,
Hari

Edited by: Hari on Oct 15, 2012 2:23 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2012
Added on Oct 15 2012
3 comments
260 views