Response in new window, tab, popup

Hi,
using JDeveloper 10.1.3.3. ADF BC JSF, I'm going crazy with the following problem,
I have a page and commandLink on it, when I click on commandLink I call method that parses some XDO file to get the params out, and from that metod I redirect to servlet url with params like this:
response.sendRedirect("http://10.52.12.221:8993/Publisher-ViewController-context-root/faces/prompt" + params);in servlet I generate html with input fields like this:
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
try{
Enumeration paramNames = request.getParameterNames();
out.println("<html>");
out.println("<head><title>Params</title></head>");
out.println("<p>Enter params for report</p>");
out.println("<FORM action=\"http://10.52.12.221:8993/Test-ViewController-context-root/faces/prompt\" method=\"post\">");
while (paramNames.hasMoreElements()) {
String name = (String) paramNames.nextElement();
out.println("<INPUT type=\"text\"" + "name=\""+name + "\">");
out.println("<INPUT type=\"submit\" value=\"Generate report\"</P></FORM></body></html>");
out.close();All I want is to show generated html page in new window, new tab or popup, and I cannot do this. I've tried everything, added javascript in head and in body I've added onLoad which calls javacript function to open new window, but new window is always blank while main page becomes the html generated in servlet. Does anyone have some solution to my problem, advice or anything, please help.
Thanks in advance,
Tomislav.

Hi Frank,
thanks on your time. I've found a solution to my problem and I cannot believe how I didn't see it before:
af:form TargetFrame = "_blank" every time commandLink is clicked result is displayed in new window or tab depending on browser configuration. Haven't tested it thoroughly, I will tomorrow and post if everything worked out fine.

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

  • Setting mailto links to open new window/tab?

    When I click a mailto link, I would like to be able to have it open a new window/tab, not open my webmail (yahoo) in the same window. Also, when I click said mailto link, I have issues with the link sending the correct info to yahoo. I end up getting everything in the to field with the mailto: and also the subject: in this field. e.g. [email protected]?subject=test

    My MAILTO problem was finally fixed on the June 29, 2012 Firefox version 14 beta 10 release.

  • Viewing Larger Image Version / in New Window/Tab

    I have added in the links to larger image files to my lower res images. When I click those images in Preview it takes me out of the page and to a new window to view the larger image. Will this larger image be viewed in antoher tab/window? I see the option to click "Open in new Window/Tab" in the hyperlinks menu. I have not activated that for each image link. Should I?
    I want to make sure I don't leave the site and don't maintain a tab to get bak to the page I was on after I view a larger image.

    Yes you will need to do it for each link. Wether it opens in a new tab or a new window really depends on what browser the user is using and how they have it set up.

  • How can I stop the bookmarks sidebar from popping up in every new window/tab?

    I CAN close it, by clicking on the X, or ctrl-B, or going to View... but it keeps coming back in every new window/tab, and that just annoys me. I'm used to having the bookmarks up in the Menu bar, out of the way, until I want them. The sidebar takes up a lot of space. And even though it's easily closed, I resent all these things that I didn't ask for, don't want, and can't control!

    Usually the sidebar doesn't open by itself, but it is shared by all the tabs in a window.
    If you are using a toolbar button for the Bookmarks menu (instead of the classic menu bar), you might have the sidebar open/close button instead of the drop-down button. They have nearly identical icons, but the menu has either a little triangle or the word Bookmarks to the right of it, depending on which bar it's on. (Screen shot attached, from Firefox 24.)
    To change out your button, you can try the Customize feature. See: [[Customize Firefox controls, buttons and toolbars]].

  • PDF in browser: launch web page in new window/tab

    Good morning all,
    Our forms use the hyperlink functionality and the desired result is to have the web page launch in a new browser window, or tab, when viewing the PDF in a browser. When the web page opens in the same window, the form data is lost after hitting the back button to return to the form content.
    The current alternative is to use xfa.host.launchURL() function however we're wondering if there is a Preference setting in Reader we could enable/disable instead. Most of the links are text embedded in paragraph so hyperlinks work and look really good.
    Changing the internet options of the browser is not an option for us.
    Also looked at Reader's Edit | Preferences | Documents | Open Cross-document Links in Same Window which appears quite promising based on the Help's description:
    Open Cross-document Links In Same Window
    Closes the current document and opens the document being linked to in the same window, minimizing the number of windows open. If the document being linked to is already open in another window, the current document is not closed when you click a link to the open document. If you do not select this option, a new window opens each time you click a link to a different document.
    But for some reason I can't explain, the web page still opens in the same window after disabling the cross-document option. So maybe I should rephrase my question and ask if someone knows any reason why option doesn't work?
    Thanks much!
    Hélène

    Hi Hélène,
    I don't know of any option to force hyperlink behaviour when the form is opened in a browser.
    Have a look at George's suggestion to use a button without fill or border over the text: http://forums.adobe.com/message/1342426#1342426
    It is a bit of double handling and you need to maintain the button in the correct position. However it does give you greater control in forcing a new browser window/tab.
    The open cross-documents preference didn't work for us either.
    When testing forms here we see a big difference in behaviour between different browsers and OS. So while you may get a hyperlink working in IE, the same solution may not work in other browsers. On balance I think overlaying a button would be the most robust.
    Good luck,
    Niall

  • How i can open a adf faces page in new window / tab

    I want to open an adf faces page in new browser window/tab. How i can do it?

    Try an af:goLink and set its targetFrame to "_blank".
    Timo

  • Safari always opens new windows/tabs

    Every time I click on a link Safari opens a new window or tab instead of just going to that link in the window that I am in. So when I close Safari I have multiple pages/tabs open.  It used to just go from page to page without opening new windows or tabs. What setting needs to be changed to get back to the single window?

    I figure out what the problem is. I set the Google search to open link in new window, and then it can be opened in tab with one tap. Thanks for help!

  • How do I change "open new window" tab behaviour?

    I used to be a Firefox user ages ago, and then switched to Chrome for awhile. I'm coming back now, and I'm noticing some strangeness with tabs and "new windows". Can't figure out how to get around it.
    My "Home Page" is set up to open three tabs. One is MSN, the second is my email, and the third is Google Calendar. That works great, except..
    1) If I pick "New Window" (Ctrl-N), it re-opens those same three tabs. When I open a new Window, I don't want to open those three tabs again. They're already open in the primary window. How do I stop Firefox from doing that? I can't figure out how to make that happen.
    2) The other is about the "Home" button. If I push the home button it loads all three of those tabs. In Chrome there's a separate setting for the home button vs the startup tabs. Is there any way to replicate this? I occasionally hit the home button just to load MSN. I don't want all three of those tabs when I hit the home button. Any way around this?
    Danke.

    That is not possible.
    A new window opens the home page(s), so you would have to set the home page to about:blank or create a bookmark with the location set to about:blank and hold the Shift key and left-click to open this page in a new window.
    You can add those three pages to the command line of the Firefox desktop shortcut to open these page when you start Firefox.
    *https://developer.mozilla.org/Command_Line_Options

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

  • New window tab doesn't appear

    A tab will sometimes disappear while the tab bar remains.
    This happens sometimes and is somewhat unpredictable. One part that is predictable is when I have multiple tabs on one window, then drag one of the tabs off that window. That tab becomes it's own new window. But the new window has no tabs. See a screenshot here:
    http://www.legendsrpg.com/funkyfirefox.JPG
    It's particularly annoying when I then make a new tab on the new window, and only that new tab is present. The only way to tab back to the first tab is to close all the other tabs on that window.
    To answer your usual questions:
    -I have tried disabling all plugins, then restarted Firefox, and I can recreate the scenario described above.
    -I do have "Always show the tab bar" checked
    -This started when I recently updated Firefox
    Oh, here's one of the unpredictable times. I had this window open, I opened a new tab in it (everything looked normal), I dragged the new tab off the window, the new tab in the new window disappeared (it's the window in the screen shot). I then disabled the plugins, restarted, and now this window has lost it's tab, just like the other one.
    Any solutions?
    Thanks

    I've seen such issues also happen with new windows.<br />
    Current Firefox version only show the list all tabs button on the Tab bar if there are sufficient tabs open to make the scroll buttons appear, so that button can't be used.<br />
    You should be able to use the keyboard navigation keys command + 1 to 8 to access the first 8 tabs.

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

  • Firefox opens but no window comes up--no new window, tab, etc.

    My iMac, OSX 10.9.4, opens Firefox so I have all the tabs running across the top, but no window will open. None of the top selections brings a window up--new window, new tab, private window, bookmarks, history, view--nothing.

    There is no window, or the window is blank?
    Occasionally the Firefox window will get off screen. Here are three different
    approaches to getting that window into view. One of them should work!
    '''Firefox Window "off screen" — Arrow Key Method'''
    If you know that Firefox is off to a particular side, you can use the arrow keys
    to move it back on screen. You only need to move it far enough to be able to
    click the title bar and then you can drag it the rest of the way.
    Make the Firefox tile active on the task bar and press this key combination
    to start moving the window:
    Alt+Spacebar > M
    (To clarify, that's Alt+Spacebar to open the window control menu, then the
    letter m to start moving the window.)
    Press the arrow key for the direction you want to move the window, e.g., press
    the left arrow key to move the window left. Press the Enter key to complete the move.
    '''Firefox Window "off screen" — Maximize + New Window Script Method'''
    If Firefox is nowhere to be found but you know it's out there, try this method.
    Make the Firefox tile active on the task bar and press this key combination to
    maximize the window:
    Alt+Spacebar > X
    (To clarify, that's Alt+Spacebar to open the window control menu, then the letter
    x to maximize the window.)
    If that works, try this:
    (1) Copy the following line of code to the clipboard (it's all one line...):
    newwin=window.open(window.location.href,"_blank","width=640,height=480,menubar,toolbar,personalbar");newwin.moveTo(0,0);
    (2) In the maximized window, press Ctrl+Shift+k to open the web console.
    (3) Press Ctrl+v to paste the line of code next to the caret (») then press Enter to run it.
    A new copy of that page should open in a window positioned at the top left of the screen.
    (4) Switch back to the maximized window and close it first, before doing anything
    in the new window.
    '''Firefox Window "off screen" — Remove Settings File'''
    If you can't move or maximize Firefox, you can rename or delete the settings
    file that stores the last window position.
    (1) Open your currently active Firefox settings folder (AKA Firefox profile folder).
    From the Start menu (Run box or search box), paste this into the search box and press Enter:
    %APPDATA%\Mozilla\Firefox\Profiles
    This should open a window showing one or more Firefox profile folders. If you have multiple
    folders, look for the most recent. Click into your profile folder.
    (2) If Firefox is still running, right-click it on the Task Bar and Close all Windows.
    (3) Wait a few moments for Firefox to finish updating files in your profile folder, then rename
    '''localstore.rdf''' to something else, like localstore-bad.rdf or localstore.old.
    Alternately, you can delete the file.
    (4) You're done with your profile folder and you can restart Firefox now.

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

Maybe you are looking for

  • Multiple Failures for new trusted certs with ORA-28857

    We are seeing problems with working APIs that use UTL_HTTP over SSL starting to fail with newer trusted certs. Importing these certificates into the wallet just leads to a ORA-28857 and a corrupted wallet. We are using 11.2.0.1.  3 trusted chains hav

  • View for GDS

    Hi All, I want to create a view on table mbew and mara : tables are MBEW T001 MARA joining condition are MARA     MANDT     =     MBEW     MANDT MARA     MATNR     =     MBEW     MATNR then i got the error of Invalid extract structure template  .....

  • Since IOS7 update, my car stereo will not communicate with my Iphone 4

    Ok, I have had Kenwood car stereos with bluetooth connection since they came out with it and I have never had a problem.  Now I am so mad, I am ready to throw my phone out the window.  I can plug into usb or stream music bluetooth and it plays just l

  • SQL_Developer and date format - possible bug

    I have encountered an error that I cannot explain. In Oracle SQL Developer very simple query: Select To_Date('01-JAN-0001 BC','DD-MON-YYYY BC') From Dual; returns: 01-JAN-02 The year is wrong. NLS_DATE_FORMAT for this session it is set as 'DD-MON-RR'

  • Terminated with error: br REP-501: Unable to connect to the specified

    Hi, My report server can function nicely, always I can retrieve my report but I am also constantly facing the error when running report after a few minutes having my report servers on function.      Terminated with error: <br>REP-501: Unable to conne