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)");

Tags: Java

Similar Questions

  • 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

  • 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

  • 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");

  • 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.

  • Shortcut to open a program in a new window in the splash screen?

    I find it rather annoying that windows 8 refuses to open a new instance of a desktop app when I click again in the start screen.   If I for example several 'guests order', I have to go to start, right click on command prompt, click Open in a new window.   It's quite embarrassing.   I don't see that there is an option to remove this restriction.  It may be wise for the Metro style applications open 1 single instance, but it is not appropriate to impose this restriction on desktop applications.

    Can someone give me a registry hack or an option of control panel to fix this annoyance in the splash screen?
    For now, I added programs like a toolbar that is separate in the taskbar of office, so that I can open multiple instances without using the start screen.  For every reading, you can do so by right-clicking the taskbar, uncheck the lock all bars of tasks, do a right click again and click on toolbars-> new toolbar and drag on new program shortcuts.

    I find it rather annoying that windows 8 refuses to open a new instance of a desktop app when I click again in the start screen.   If I for example several 'guests order', I have to go to start, right click on command prompt, click Open in a new window.   It's quite embarrassing.   I don't see that there is an option to remove this restriction.  It may be wise for the Metro style applications open 1 single instance, but it is not appropriate to impose this restriction on desktop applications.

    Can someone give me a registry hack or an option of control panel to fix this annoyance in the splash screen?
    For now, I added programs like a toolbar that is separate in the taskbar of office, so that I can open multiple instances without using the start screen.  For every reading, you can do so by right-clicking the taskbar, uncheck the lock all bars of tasks, do a right click again and click on toolbars-> new toolbar and drag on new program shortcuts.

    Hello

    When you open an office application, an icon for this app will appear on the desktop taskbar.

    Click on icon and select application name, near the bottom and this will open a new instance of the application.

    Concerning

  • I can't open a tab or a new window to the right of an existing tab. I followed the instructions to update via the FAQ but still does not. Help!

    I can't open a tab right of an existing tab. I followed the instructions provided under the normal FAQ. This feature has been recently removed from my PC, and I am not sure how.

    The Ask toolbar is originally only in versions of Firefox 3.6.13 +. Uninstall this extension.

    There are a few places to check for the Ask toolbar:

  • How to open a new window to the same URL?

    When I click CTRL + N to open a new WINDOW, is it possible to open the new window to the SAME URL than the one I was on (instead of opening my homepage)?

    You can tear off a tab in a new window by dragging the tab slightly down, but who will remove the tab of the active window.

    You can watch this extension:

  • My Google preferences are set to display the search results in a new window. However, when I do a search on Google, it Firefox always opens 2 new windows with the (same) results. How can I fix?

    I do not change my Google settings. I've always had it ready to open search results in a new window. Some time before, he began to open two windows that have the same url/content.

    This problem may be caused by an extension that is not working properly.

    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 > Modules > appearance/themes).

  • How to prevent the FF31 opening new window? I want to open all links in a new tab at the top of page.

    I think the following quote, below, for help on the page is my problem.

    I have a site that I use when I click on a link in the Web site it opens a new window with the tab down. In addition, when this happens, I lose the orange rectangle FireFox, bookmarks and navigation options. How can I define FF31 so that the link opens in a new tab, and I keep all my options? I use Classic theme restaurateur 1.2.3. I also note that, in the new window, I lose the ability to use some of the addons.

    I have two laptops and both are running FF31 and W7. One of them works perfectly and the other is having this problem. As far as I can tell they are both defined by the same. The only difference is that when I upgraded to FF31 they both had difference older versions of FireFox. I also read in the help forum that maybe I need to go back to FireFox 28 to accomplish what I am trying to accomplish.

    I noticed that when I'm going under: config that the version of FF that does not work unless options compared to the version that works. An example would be that the working version has 'browser.tabs.onTop' where, on the other computer laptop is missing.

    > > > open new windows in a new tab instead: this option controls whether links from other applications or from web pages which request to open them in a new window opens in a new window or a new tab in the most recent window.
    Note: If you have chosen to open pages in new tabs, Firefox will ignore this option and opens a new window from a link if the page author specified that the new window must have a specific size, because some pages cannot be displayed correctly to a specific size. < < <

    Thanks in advance for any help,
    Yeto

    You can override how the links are opened through the browser.link.open_newwindow.override preference.

    Use it for links opened via JavaScript.

    See also:

  • 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.

Maybe you are looking for

  • Mac does not recognize an external HD

    So let's see if I can explain this, I bought a pc and I want to transfer my files via via external hard drive I went to the utility thing disk partition and it came back with an error, so I ended up hitting erase the drive. Now I can transfer files o

  • restore from Time Machine lost iTunes library

    My system crashed and I'm having a hard time folding files of TimeMachine.  It is not very intuitive, if you ask me.  When I try to restore my music library, it tells me that I can't because "she is required by OSX.  In general, I'm quite unhappy wit

  • Product registration information (change)

    Nice day. I recently bought a laptop computer in Saudi Arabia. After reviewing the details of the warranty... I noticed that it says "South Africa" as the country of purchase. I enter my billing address (for security) in South Africa as I am a South

  • How to put the NI6115 DC pairing mode?

    I use Analog Input: general properties: Input Configuration: coupling property to set the coupling mode. But it doesnot work for NI 6115 How can I configure the NI 6115 pairing mode. Thank you

  • X 61 and 6 X docking station

    Hello I have a huge problem. My cd-rom doesn't work anymore. In the Panel, I see the yellow sign for the CD... Unfortunately, there is no driver to download and how can I do an update of the Bios of the laptop, when the CD-rom does not work. Can anyo