Open a url in a new window of backing bean

Hello

I would like to open a url in a new window of a bean to support, but I don't know how. Does anyone know?

Basically, I'm trying to run a report oracle via its web service.  When the work was done, so I want to get the results in a new browser window. Can build a url, I do not know how to open in a new browser window.

So what I have is a url of type " " http://myserver/reports/rwservlet/getjobidXX?Server=RptSvr_inst "" "

Now, I need to open a new browser window to this url.


Any ideas?


Thank you

Hello

Copy the code below.

                            FacesContext ctx = FacesContext.getCurrentInstance ();
                            Erks ExtendedRenderKitService = Service.getService (ctx.getRenderKit (), ExtendedRenderKitService.class);
                            String url1 = "window.open ('" + Url + "","_self" ");"
                            erks.addScript (url1, FacesContext.getCurrentInstance ());

Thank you

Amey

Tags: Java

Similar Questions

  • Open a url in a new window in the bean support

    Hi all

    How can I open a website like google in a new window, but through the Backing Bean?


    Thanks to all in advance.

    Using javascript...

    FacesContext facesContext = FacesContext.getCurrentInstance ();
    ExtendedRenderKitService = service
    (ExtendedRenderKitService) Service.getRenderKitService (facesContext,
    ExtendedRenderKitService.class);

    service.addScript (facesContext, "window.open (http://www.google.coml)");

  • By clicking on the button should open a url in a new window

    Hello

    I have a button, clicking on it will open the URL in a new window

    Action click the item button, I chose

    Action: Redirect URL

    Target URL: http:// URL

    The books above, but it has not opened in a new window.

    I tried below after you follow the blog http://www.inside-oracle-apex.com/opening-url-in-new-window/

    http://URL/ "target =" _blank

    Still no luck

    Any help would be appreciated

    Thank you

    Have you tried:

    Url redirection

    in the URL:

    javascript:window.open("http://whereeveryouwanttogo.com","mywindow");

  • Open a URL in a new window from Flash

    Looking for the easiest way open a URL in a new window from Flash using AS3 CS3, thank you.

    The following line of code will do it... fill in the URL

    navigateToURL (new URLREquest ("http://www...", "_blank"));

  • Why not open a URL in a new window

    In older versions of Firefox, I could do a right click on a URL and then select "Open link in a new window" and a new window will open to display the information. In newer versions, V5 or later, if I select "Open link in a new tab" new information will be displayed in a new tab, if I click on "Link in new window" all the I get is a new window with two blue bars on top a 'new tab' and an empty window no information is displayed.

    Try Firefox SafeMode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the Firefox 4, 5, 6, 7 SafeMode pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox SafeMode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

  • Drag a tab on the desktop (or in the tab bar) does not open that URL in a new window, only a new window with a blank tab FF4 RC2 (made with RC1 as well).

    When I drag a tab open existing tab FF4 on my desktop toolbar, a new window opens as expected, but the tab in this window does not load the URL of the tab dragged from the previous window. The tab "Move to a new window" menu item is the same as well.

    I disabled the Tab Mix Plus add-on, but it made no difference. Is there a setting somewhere that I'm missing?

    I use Tab Mix more and do not have this problem.

    You may need to try Mode without failure of Firefox to see if an add-on is causing the problem; See: http://kb.mozillazine.org/Safe_Mode

    • In Firefox 4, to enter Safe Mode, hold the SHIFT key while clicking on the icon of the desktop Firefox 4.
    • Firefox Safe mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, place you in the DEFAULT theme: Tools > Modules > Themes before start Safe Mode. When you enter Safe Mode, do not check all the items in the window, just click "continue mode without failure." A test to see if the problem you are experiencing is fixed.
    • If the problem does not occur in mode without failure, then disable all your Extensions and Plug-ins, and then try to find out who is causing by allowing both the problem reappears. You MUST close and restart Firefox after EACH change via file > restart Firefox (on Mac: Firefox > Quit). You can use 'Disable all add-ons' on the start safe mode window.
    • See below for more information
  • Open a URL in a new window when you press the button

    Version: 4.1.1

    Hello

    Under the button options, we can set to redirect to a URL. However, the page opens in the current window. Is it possible to get it to pop open in a new window?

    Thank you
    Ryan

    You can include

    target="_blank"
    

    in your url.
    http://www.w3schools.com/tags/att_a_target.asp

    Or alternatively, you can use (replace the url - I use google for example)

    javascript:window.open('http://www.google.com');void(0);
    
  • How to open a URL in a new window?

    I published Captivate 4 training in Flash/HTML and put it on the server. I have several links to various websites within the formation, but they open in the same window of my Captivate training. When I hit the back button, I start at the beginning of my training instead of here where I left. Is there a setting somewhere in Captivate that I don't see or I have to use the Flash to get the URL to open a new window?

    Thanks in advance,

    Diana

    Hello

    Look to the right of the where you type the URL. You should see a button with an arrow down there. Until it clicks. Choose new!

    Now, I'll get out my crystal ball and answer the following question with that you will come back to this message. Wow, a twofer!

    Once you do that the links will open in a new window. Dandy! But your next question will ask how to make so that the project is progressing until you return are ready. Because you are unable to watch the pretty new window (or tab) the Captivate has continued to play.

    You need to click this button a second time. Then uncheck the option "continue the project play!

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • APEX... Link to open a URL in a new window

    I have a column of my interactive reports related to a URL... so when my user click on the link it opens a Web page...

    How can I do on it to open it in a new window...

    Thank you

    You must add target = "_blank" to your url or depending on how you call the url, put it in the attributes of link field.

  • StageWebView opens the link in a new window

    I have a StageWebView with a Web page that contains the ads that are coming from AdMob (due to their current lack of support for AS3 and AIR for Android).

    However, when a user clicks on the ad, the linked page opens in this window, so the content is barely readable. Is there a way to make the browser to open the link in a new window, separated from my application?

    Of course the AdMob ads were not intended to work in this way, the user and the adveriser are here get cheated (due to lack of current AdMob to support AS3 and AIR for Android).

    Thank you!

    Yes:

    1. Listen to the event of change of location
    2. Use navigateToURL (event. URL)
    3. Reset the stageWebView to your announcement page location.
  • When I run mozilla or open a link in a new window but I get the page you want to load an additional page of the new tab opens with it, the difficulty?

    When I launch mozilla or open a link in a new window I get the page you want to load but an additional page of the new tab opens with her. I tried to change my homepage to different things (new tab, firefox home, see the blank page) but I always get a new additional tab to open. How can I get only one page to open it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions and preferences.

    • Sites Web open is not recorded in less than 25 versions of Firefox.

    To reset Firefox, perform the following steps:

    For Firefox versions prior to 29,0:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the "Reset Firefox" line

      button.

    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    For Firefox 29,0 and above:

    1. Click the menu button

      click Help

      and select troubleshooting information.

    Now, should open a new tab containing your troubleshooting information.

    1. At the top right of the page, you should see a button that says "Reset Firefox"

      . Click on it.

    2. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    3. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • How to open a tab in a new window

    I remember, but by mistake, it seems, that "in ancient times", there is an option to open a tab in a new window. I can't find this option and I can't find such a topic in the forum so far. It is a very useful option. I use beta FF28 on a 64-bit W7Pro computer and with tab modules: tab history, mix label more and avoid the endless tab.

    Hello MikeZgb2012, you can drag the tab of the tab bar to make it open in a new window.

  • The Firefox HELP tab keeps appearing whenever I open the application or a new window. Firefox 3.6.28, Mac OS 10.4.11

    The Firefox HELP tab keeps appearing whenever I open the application or a new window. Firefox 3.6.28, Mac OS 10.4.11

    Ah, apparently it's reading I wanted as long as home pages; When I reset my homepage it started working right.

    Thank you

  • When I open a link in a new window does not display the web address.

    When I open a link in a new window does not display the web address. What have I done wrong? It used to work and it works if I open the link in a new tab, the problem is that I hate to use tabs prefer a new window every time... Help!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Can I set default to always open a link in a new window, as opposed to a new tab?

    Can I set a default to always open a link in a new window instead of a new tab?

    No, not to always open a link in a new window. If a link opens in the same window or a new window depends on the creator page specifying new or empty for this link. Firefox can divert the news/white window in a tab instead, which is the default setting.

    If you do not want tabs when a new/empty window is specified, deselect the pref to open new windows in a new tab instead , in tools > Options > tabs

Maybe you are looking for

  • What happened to the padlock icon in the lower corner right?

    When I order the items online, I'd like to see this padlock icon in the lower right of the window. I thought that this meant that the site was secure. Now I just see the Fox head icon. I don't know if it's safe. Is it? Everything is fine with firefox

  • 6008 USB channel power for specific times

    Hello I am new to Labview, so I don't know if it's easy or hard to do. I have an attached VI who writes exits Digital 12-channel. What I´d wants to be able to write each channel for a specified time (avoiding the is fine - it doesn´t have to be super

  • Windows Update has had the BAD update for my computer!

    Windows Xp Pro 32 bit, ie8. There was an update of the optional equipment, Trendnet ethernet adapter. I installed it. I lost my internet connection. I reinstalled my ethernet realtek card and my internet back. I realize, it's an optional update, but

  • DwmExtendFrameIntoClientArea render text of button transparent

    I am a student and a newcomer to c ++. I use blocks of Code as IDE and started with GUI programming. I've seen a technique impressive to make the client area of the main window to be translucent aero glass and thanks DwmExtendFrameIntoClientArea. But

  • Cannot download Microsoft Bingo

    Hi, I tried to install Microsoft Bingo on my laptop running on Windows 8.1 But the Bingo page said that the upgrade to Windows 8.1 and it fails to display the icon 'install' for Bingo. Help, please. Thank you Shaskhar