Open commandLink in new window/tab

I have an ADF app with a link to an Apex reports site. The af:commandLink calls a procedure which does some internal validation (calls a pl/sql package to get an Apex login token) then redirects the browser to the Apex site. I'd like to get that Apex site to come up in a new tab in the browser (or new browser window) but there's no target property on the commandLink or in the redirect procedure I'm using (ExternalContext.redirect()).
Any suggestions on how to get that redirect to come up in a new window/tab?
edit: using 11.1.1.4
Edited by: steve_mj on Feb 2, 2012 6:39 AM

Try this technique in a managed bean method that is invoked by your <af:commandLink>:
// Invoke your PL/SQL procedure
// Open the APEX site in a separate browser window
String apexUrl = ...;
ExtendedRenderKitService erks = Service.getRenderKitService(ctx, ExtendedRenderKitService.class);  
String script = "window.open('" + apexUrl + "', '', 'location=0, status=0, resizable=1, scrollbars=0');";
erks.addScript(FacesContext.getCurrentInstance(), script);Dimitar

Similar Messages

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

  • Open link in new window/tab

    Hello, is there anyone that can tell me how you can make a link to a webpage outside your wiki that opens in a new window or tab, so that the wiki stays open.
    thanks in advance...

    I am having the opposite issue. I am wanting all internal and external links to open within the same tab and window. It seems by default that all links that we add are opening externally.

  • Suddenly today I cannot open message in new window, tabs ONLY

    I normally open email in separate window with double click. Today it will not open. Context menu item "Open message in New Window" also does nothing. Only way I can get message open is Context menu item "Open message in New Tab." Version 24.6.0 Windows 7(64 bit).

    set Thunderbird to use tabs,,,, then change it back to a windows. I have seen occasions when the setting to user interface shows does not reflect the true state of affairs. Like it need to be reset to get the message.
    Your could try restarting from the help menu with addons disabled. See if it is one of them causing issues. (quite possible)

  • List - Navigation Outline - how to open link in new window/tab?

    I have created Navigation Outline but would like to open links in the new window or tab.
    We are using single sign-on within our intranet therefore the links looks like that: f?p=105:1:&SESSION..
    Does anybody have any ideas how to open new window, I have tried this: target="_blank" but it doesn't work.
    Thanks in advance.
    Robert

    Where exactly are you building this link to open a new window? Are you builidng it inside the query? a column link? I'm just curious; as it would make a slight difference in syntax, or where to escape, or whether or not you need to escape or not. But anyways, you could look into the javascript:popupURL syntax.
    So if you were building a link inside a query, the syntax would look similar to:
    '<a href = "javascript:popupURL(''f?p=&flow_id.:101:&session.::&debug.::&P101_ITEM:&P99_MATCH_ITEM.'')">Link</a>'
    Those are two single quotes that start and end the ....f?p-url-part....I.e., escaped.
    But thats just an example. Hope that helps.

  • Open hyperlinks in new window/tab/pop-up ?

    Now that my hyperlinks are working again....
    I have a section with "directions" to lots of locations, each location has a google map link and a link to a pdf , when the user clicks on a link for a PDF or google map etc, it comes up fine but when you hit the "back" button to return to the site you have to go back in the front door again and nav back to where you were.  How do I setup these links to open in a new browser window or a pop-up so the user doesn't lose their place on the site?  This is a actionscript 2 / flash9 project.
    Thanks
    Joel

    I guess I forgot to mention the these links are HTML <a href = > tags in dynamic text boxes. I'm not using the getURL function. That said, I tried it in the tag and it seems to work fine. Did the trick.
    Thanks

  • Is there a way I can click on a link designed to open in a new window/tab and have it replace the current tab instead?

    For example, if I go to [http://www.ncbi.nlm.nih.gov/pubmed/20435580 an abstract on PubMed] and click on either of the full text icons, Firefox will open a new tab. I want the full text to replace the tab with the abstract, instead.
    The best thing I can figure out now is to Ctrl-click the icons so they open in the background, then use Ctrl+W to close the current window.

    Hi,
    In your Firefox -> Preferences/Options -> Tabs, you can select the check box "When I open a link in a new tab, switch to it immediately". You would still need to go back and close the original tab, but this would help you with part of the issue.
    Thanks,
    Michelle

  • When I click a link on most pages, it opens in a new window/tab with just *go to a website* in the address bar.

    This happens from links in my email and links from websites. Is there a setting somewhere that I botched that hides web addresses from me?
    It however, doesn't happen every time I click a link.. strangeness.
    FF 9.0.1
    Windows 7 x64

    For the list of teachers there are email addresses in the right hand column, did you click on an email address?
    If you did that could explain the multiple tabs being opened. What may have happened is you have the mailto protocol set to open Firefox which results in 100s of tabs opening when you click on an email address. For details on fixing that see [[Firefox keeps opening many tabs or windows]], in particular the section on "Change the action for a content type". My guess is you will find mailto is set to "Use Firefox".

  • IWeb - cant adjust hyperlinks to open page in new window

    Anyone know of a work around to this obvious shortcoming? ...other then hacking the html code? the website is: www.apexjiujitsu.com
    My Links page is the one that I'd like to set parent=_ or whatever the value is for new window instead of same window

    Hi all.
    New to iWeb as well and am enjoying creating my website.
    Having played with HTML in the past and dreamweaver for creating pages, remembered there is a way to do this in a non-iweb way.
    The extra code that needs to be added at the end of your link is:
    target="_blank"
    Now how to get that in your iWeb page.
    What I did (worked for me each time) - copy the page you want to edit from your iDisk in the Finder window to a folder on your mac. Make sure to make a copy of this file in case you want to go back to the original.
    - Next open the page in Netscape (using ver 7.2). Pics did not show as I did not copy those.
    - In Netscape click File, Open File. Just navigate to your page location and click Open.
    One really neat feature I like about Netscape is that it comes with a built in web page editing tool.
    - Click File, Edit Page. Editing window appears.
    - Find the link you want to change and double-click it. It may try to open the link in new window, if it doesn't, don't worry about it. Or give you an error - close the error window.
    - Go back to the editing window and double-click on the link again. You should see a drop-down menu appear.
    - Click Advanced edit. There are two columns here - Attribute and Value.
    Attribute is what you want - ie open in a new window (target) and the Value is what happens next ie. opens the link in a new window.
    - Click on the Attribute drop-down at the bottom and choose "target".
    - Click on the Value drop-down and choose "_blank" (usually defaults to this).
    - Click OK and then OK again.
    Close the file and make sure to save.
    All I did then was copy the edited page to the iDisk folder wence it came from and overwrote the original (did you save a copy of the original in a safe location?).
    Opened the page in Safari or any other browser and voila' - link now opens in a new window/tab.
    Sorry for the long winded reply explanation. Wanted to be sure I didn't miss anything. ***Just be sure to save a copy of the original page your working on in a safe place in case you need to revert to the original.***
    Hope this helps.
    ps. Agree, adding an option to open links in new window should be put into the enhancements to come for iWeb.
    Stewy
    G5 Dual 2.3 ghz   Mac OS X (10.4.2)  

  • When clicking on links that open in a new window, the links don't open and Firefox freezes in a way. I can navigate the page I am on but cannot click to open a new tab or bookmark.

    When navigating the internet, if I come across a web page that has a link to open a picture or program in a new window, if I click on it, it does not open. Firefox immediately looses functionality in that I cannot open a new tab with the mouse wheel, right click to open a new tab, or use my bookmarks in either the drop down or toolbar to navigate away. I can usually still navigate the page that I am on, for example, (https://loanconsolidation.ed.gov/AppEntry/apply-online/appindex.jsp), when it freezes I cannot click on any of the content at the center of the page but I can still use the links from the list on the far left. For an example of the pictures, (http://www.insect-sale.com/), if you click on "New Arrivals" at the top of the page it takes you to a list of products that can only be viewed by clicking on them. Usually a picture of the item would open in a small window but it does not and Firefox freezes. This has also happen when I try a view a degree audit on a school's website where a program would usually open in a new window. The only thing I have been able to find that still functions properly when this happens is the home page button. I can click on it or use the wheel to open it in a tab just fine, but if I try and go anywhere else I cannot. The only way I can get Firefox back to normal is to use the Task Manager and end the process. Another thing I have noticed, that may or may not be related; is that my Norton Internet Security toolbar, that should show up below the bookmarks toolbar and above the tabs, only shows up about 1 out of every 10 times I open Firefox. Some days it doesn't show up at all. If it does show up and I log into Identity Safe, the autofill for the programed website works, even if the toolbar doesn't show up the next time I open Firefox.

    Go to Tools->Options->Apps
    Here you should see two columns: Content Type on the left, Actions on the right.
    Find and select excel spreadsheet or any other content type in the left column. There should be a corresponding action in the right column. What is it? You can use the drop-down list to select the option you want:
    Always Ask - Firefox will ask each time: What do you want to do with this file?
    Save file - Firefox will save this file to your computer
    Use - Firefox will give this file to the program to open it
    In case of saving, Firefox will either prompt you every time where you want the file to be saved, or save it to the default location. It depends on the preference in
    Tools->Options->General->Download

  • When I open a new link or bookmark I want it to open in a new window not a slew of tabs so I can see which sites I have open.

    I'm sorry if I'm not using the correct terminology. When I open a new window or a link I want it to open a whole new window so I have 500 open FireFox tabs in my taskbar if I open that many windows. I do not like having everything open in one window. Used to be I could find how to undo that but you changed everything on me and now only rocket scientists can use your application. If Chrome and Internet Explorer weren't so ridiculous, I would change. Thank you for any assistance you can provide.

    This didn't help me at all. I want a separate window to open each time I open a new tab or bookmark. Currently when I open a new link it just adds a tab to the window already open so from my non-technie point of view, I only have one window open and have to go up top to see what is open vs. being able to look below in my taskbar and see what I have open.

  • When I click on a web link and hold down ctrl the page will not open into a new tab, it is just opening in a new window. How do I correct this?

    When I use to hold down the ctrl key and left click on a web link, the page use to open into a new tab. For some reason this is not working anymore. Instead when I hold down the ctrl key and left click on a web link, the link will open into a new window. How do I fix this?

    I figured out how to correct it. Not sure what exactly was happening. But I started into private browsing and then turned it off. It's been working correctly ever since I did private browsing.

  • When I right-click a link, and choose "Open in new tab", it opens in a new window instead. How can I fix this?

    So I have Firefox open, and I've tried to open tabs by right clicking and choosing "open in new tabs", but it opens in a new window instead. And yes, there are no problems with being able to open new tabs by pressing the ctrl t.

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • I want all pages to open in a new window when I click on a link, and do not want tabs.

    I just downloaded Firefox on my Mac laptop. I don't like using tabs, but prefer new web pages to open in a new window. What command do I use to achieve that?

    Look at:
    *Tab Killer: http://piro.sakura.ne.jp/xul/_tabkiller.html.en
    Use: Download Latest Version (via HTTP) and install via File > Open File

Maybe you are looking for

  • Kernel Panic all the time

    Kernel Panic constantly but not in safe mode, I've encountered the KP during many different situations, open safari, open , it started 14 days ago and I could only use it in safe mode, I updated the OS to 10.6.8. and untill 2 days ago it worked fine,

  • Submitting podcast results in "network connection has reset" error

    Hello, I've been attempting for the past few days to submit my podcast RSS feed to iTunes. Each time I try, it loads for about a minute before giving me an error message: "We could not complete your iTunes Store request. The network connection was re

  • Dynamically Pass the Column Name cursor. || Dynamic Column Name

    Hi, I need to dynamically pass the column name based on a Mapping table in a loop ( Right now i have hardcoded stuff )just like using Execute immediate.... Inside the procedure, I have commented as where i hit the problem. Thanks for all of your time

  • All the sytem objects  & JCO connections not working in Portal

    Hi, Can any body tell me, Last we we had copied the client copy from EIK 100 ( Production R3 server ) to EIT 900( Testing R3 server). From that movement.All the System object which are created in portal server to access the EIT 900 in R3 servers not

  • Grouping Data Weekly

    Hi, I have a query in sql Table employees columns : empid,hiredate,job_id,salary I want to count(empid) and group data weekly with job_id , order by month. Sample of Data like : mon week job_id count(empid) jan week1 sa_rep 15 jan week2 sa_rep 20 jan