Issue when opening new windows using JSF CommandLink

Hi,
I'm opening this thread to follow up on a topic posted on the old Sun Developer Forum: http://forums.sun.com/thread.jspa?threadID=5435239 . That post was never answered and I am having the same problem.
To summarize (and I'll quote from the original post):
"I am having an issue where when I open a page in a new window from a link in my primary window any button or link clicked on the primary window after that opens a new window."
"Any other actions on the primary page should keep navigation within the primary window. This issue does not start occurring until after the desired new window is opened the first time."
Anyone has run into this problem and found a solution?
Marc

This is the command link code that, once this gets called, anything else on the page will open this window again:
<h:commandLink immediate="true" styleClass="commandLink" target="_blank" style="text-decoration:none"
            id="pdfLink action="#{Bean.method}">
     <hx:graphicImageEx id="imageEx2" styleClass="graphicImageEx" value="../images/pdfButton.gif">
     </hx:graphicImageEx>
</h:commandLink>

Similar Messages

  • Fading background when opening new window

    Fading background when opening new window. I would like to do a "lightbox" effect that on mouseclick opens a new window over the top of the other windows(s) that has a close button to take the user back to the previous page. I have viewed this in the past, but now cannot find examples. If you have URLS of examples, or better yet, code to make this happen, that would be helpful. Thoughts and opinions on why I shouldn't use this effect are also welcome!

    If you need a lightbox effect, use one the freely available "lightbox" or modal window scripts.
    Fancy Box is well documented and works with images, text, iframes, Google Maps, media, etc..
    http://fancybox.net/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How do I open a page in new window using af:commandLink?

    Hi,
    I have a requirement where I need to open the page in a new window on clicking the af:commandLink.
    I could use af:goLink, but I cannot as I have to invoke the URL using http POST method. If I use af:goLink, all the parameters will be displayed in the URL. I do not want that.
    I have the below code for the commandLink:
    <af:commandLink text="Open new window" id="cl199bk"
    styleClass="AFRighColLinkText"
    action="dialog:openNewWindow"
    useWindow="true" windowHeight="400"
    windowWidth="800" immediate="true"/>
    When I click the commandLink, the page gets opened but in the same window. I have the below controlflow-case in my taskflow:
    <control-flow-case id="__71">
    <from-outcome id="__133">dialog:openNewWindow</from-outcome>
    <to-activity-id id="__72">openNewWindow</to-activity-id>
    </control-flow-case>
    Please let me know what to do to have the page opened in new window/tab.
    Thanks in advance!

    Hi Frank,
    I tried that too and the page always opened in the same page even with dialog:action set and useWindow set to true. I had the navigation rule in adfc-config as well.
    I got it done using the url-view activity.
    I have created a new bounded task flow with the url-view activity as the default activity. I called this new task flow from the actionListener bean method on commandLink. Set the new task flow to url-invoke-allowed.
    I have my parameters set in the url-view activity. With this the parameters are not shown in the URL.
    That did the trick for me.
    Thanks.

  • How do I forces FF 23 to open maximized, not full screen, but maximized, both on start up and when opening new windows?

    Firefox 23 does not open maximized nor does it open new windows maximized. As such I have to manually maximize each window.
    Run is set to maximized in the shortcut properties, yet it still opens in a normal or less than normal size window.
    Older versions open maximized with no problem. I have Profile manager configured so that I can run multiple versions at the same time and everything opens maximized except FF 23.
    is there some setting in the about:config interface or is this a genuine BUG in the latest version? Any help would be appreciated greatly.
    Also can you tell me how to modify the title bar text/icon/etc as well as where to find the icon or portable network graphic (png) file for the main-window.ico or direct me to appropriate knowledge base articles for modifying both.

    My localstore.rdf file was fine. The problem was caused by two plug-ins that Mozilla shows as being compatible with Firefox 23, when in fact they both cause undesired side effects.
    Maybe the employees of Mozilla should actually test plug-ins before they allow them to be available for download or worse yet, recommend them.
    And if any of the in-house developers had a clue they would stop removing old lines of code from Mozilla products so that new versions of Firefox would still be compatible with older plug-ins and extensions people would still like to use.
    I had to remove recommended extensions and copy code from older versions of FF and NS and modify settings in about:config to allow older extensions to work to correct the problems and get Firefox to work the way I need it to. All in all I have over forty hours invested in modding FF at this point just to have it function the way it used to.
    Unfortunately, since I still can't get buttons designed to open .URL links from the toolbar to work as they did in the past I have a feeling I'll be returning to older code sources to find more answers.
    Lucky for me that I have every browser going back to NCSA Mosaic available to me, so every bit of code from the present till back before Mozilla existed is include in my knowledge base. It's a shame Mozilla doesn't keep such a reference available for it's users or apparently it's in house developers and staff.
    Maybe I'll even re-enable the splash screen for Firefox since the only available plug-in for that doesn't appear to work with Version 23 either, even though once again the compatibility adviser says it does
    It's truly sad that the result of Marc Andreessen's and James Clark's work and Netscape in general became the spawning Mozilla. What used to be a great browser and an acceptable replacement for Netscape, has become a joke. So much for all the hard work and effort made by Dave Hyatt and Blake Ross as well.
    I guess that's what one should expect from the developers that are a part of generations X, Y, and Me. The attitudes associated with those generations show in the lack of thought, consideration, and ingenuity that have been a part the last several versions of FF, not to mention, the copying of features from Chrome.
    When the only original idea to come out of Mozilla of late is to remove or disable features people have used and counted on for decades, the I don't care, I don't know, and me, me, me attitudes of so many from the aforementioned generations is truly evident in the last twenty incarnations of Firefox. Not to mention the attitudes and unhelpful nature of the responses users encounter when asking for help.

  • Problem when open new window...

    Hi,
    I have a flash website and one problem with it.
    When I push on a button, it has to open new window.
    thumb1.onPress = function(){
    getURL("
    http://...............as.html",
    "_blank");
    But I want that the opened window will be no resizable, no
    location, no menubar, no scrollbar, no status, no toolbar, no
    fullscreen. Can actionscript do this?

    Hi, Motiejuss!
    You can use the getURL to call a JS function.
    Just like
    getURL("javascript:window.open('
    http://...as.htm', 'foo', 'width=400
    height=400');");
    But the best is to use ExternalInterface, in Flash 8.
    Bye,
    CaioToOn!

  • New window will not open even when "open new window in tab" is checked

    I cannot open a new window even when i have the option "Open new window in tab" checked.
    Firefox will NOT open a new window under any circumstances.
    Also, when I quit Firefox, the system thinks that multiple instances of FF is running but they are invisible to me.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • When opening new tab, using ctrl, moving directly to the next tab

    when i open new tab using ctrl+left click it moving directly to the next tab, but i check the option menu then tab section, all sentence has a tick except the fifth one
    i can't remove this to the origin, and i uninstall firefox and reinstall it many time

    Tab mix plus https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
    also solves that problem, it has the option to focus the search box.

  • Any way to open new window using af:commandButton or af:commandLink?

    There are plenty of examples for doing this as a modal dialog.
    However, we need the new window to be independent of the parent (i.e. the parent should still be active).
    Anyone know a way of doing this?
    Thanks,
    - Bill

    How about using an goButton or goLink and setting the target property to _new?                                                                                                                                                                                   

  • FF 30.0 hangs for a few seconds when opening new window

    It seems like
    https://support.mozilla.org/en-US/questions/984193
    It did not start with 30.0 but I upgraded in the hope that it would solve the situation.
    Every time I open a new window FF hangs for a few seconds. It does not hang opening a new tab!
    I tried the steps described in the above topic but they did not work.
    if I open the console and type
    gSnippetsMap.clear()
    the result is
    undefined.
    If I type
    localStorage['snippets-last-update'] = 0
    the result is
    [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]
    There is no difference if I use "Show a blank page" or "Show my home page" where home page is set to "about:blank" for "When Firefox starts".
    BTW, I am using Windows 8.1

    Short addition:
    After the new window is opened I can type a few characters (max 5) into the searchbar. Only from then the hang begins.

  • Losing original session when opening new window

    I have an application that opens a new child window that form submits
    to another application on another server. When this happens the other application server automatically creates a new session, wiping out the original session in the parent window.
    Is there a way to open a window with a new session such that this new session is seperate from the original and won't kill the session when you click back on the parent window?

    I've dealt with this before. I'm not sure what appserver you're using, but weblogic allows you to speciy the session cookie name used by the web application. So each one of our apps have a different session cookie name (never the default JSESSIONID which would be shared). So in your situation, the app in the new window would be using a different session cookie so it would never overwrite the original window's cookie. I'd imagine most containers allow this type of configuration...just not sure. In weblogic, you defing the cookie name in the weblogic.xml file(deployed with each webapp). Here's what it looks like...
    <weblogic-web-app>
    <session-descriptor>
    <session-param>
    <param-name>CookieName</param-name>
    <param-value>MYAPPSCOOKIENAME</param-value>
    I'd also suggest that you completely leave the default (JSESSIONID) completely out of your cookie name. I've heard some containers use the indexOf function to find the cookie.... so MYAPPJSESSIONID and JSESSIONIDMYAPP might possibly be picked up. I'm not sure of this though, but was chatting with a co-worker who told me.

  • Hiding/changing URL when opening new window

    Any guidance on the following would be greatly appreciated.
    I have a club website which is hosted on my freespace and addressed by redirection.
    All the main pages show the URL at the top with the name of the club - as I would want.
    However, if I set a link within one of those pages to open in a new window, then the URL shown at the top is the url to the page's location in my freespace and not the club.
    Is there any way to specify what is shown in the URL area when opening a link in a new window in this way?
    Thanks for any thoughts.

    I have the the same problem bulvide has with version 3.6.9 (and with 4 beta 5). Instead of the gray page problem, now sometimes a new window won't open after clicking on the firefox icon on the taskbar (in the case of windows 7 64 bit, middle clicking, in vista left clicking). This only happens when I am watching a flash video stream from ustream for example.
    A temporary fix for the problem is to disable OOPP in about:config. You can do this by typing about:config in the URL bar, typing dom.ipc in the filter bar and toggling the 4 true values to false.
    Unlike bulvide, I don't have an issue with the speed of flash.

  • Open new window using java code and not in script

    i need some method like sendredirect or forward . where i can make some codes so as to open a new window.
    actually i am calling a jsp from one jsp file where a lot of dynamic parameters are sent. and in the second jsp i call a servlet which works to download a file to the client side. i want the file should open in new window not in the browser from where it is initiated.
    else can any one say the mime type where i can open file(a xls file) in xls window and not in browser which is not needed as user needs to press the back button(present in browser)

    Hi,
    in your code
    the following code, which is used to set the file name that is to be downloded
    response.setHeader("Content-Disposition", "*inline*; filename=somename.xls" );
    to be replaced by
    response.setHeader("Content-Disposition", "*attachment*; filename=somename.xls" );
    it will work fine try it.
    Edited by: Bhaskar.krishna on Jan 17, 2008 12:56 AM

  • "SyntaxError: unterminated literal string" message received when opening new window or tab

    I receive this message every time I open Firefox the first time online, and with each new window or tab I open after that. I don't receive the message more than once if I only work in the original window. Other than the usual updates that always go on, I haven't added or deleted anything from my system.
    == This happened ==
    Every time Firefox opened
    == Not sure exactly when.

    I found the extension causing the problem. It is MyPoints Point Finder 1.300.306. I tried updating it, but there are none available. It is currently disabled. Would removing it be a better strategy, or leave it disabled until an update is available?

  • Why tabs sometimes when opening new window go beyond it?

    When clicking on that area http://awesomescreenshot.com/0f8ccqv3e
    New window opened with tabs showing like this http://img13.imageshack.us/img13/7799/20110503090301.png
    This looks so not beacause of my screenshot. The upper part of the tab literally goes beyond.

    See also:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can delete possible user.js and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • Freezing when opening new window

    Every time I open something in a new window (not a new tab but a new window) my firefox stops responding and i have to close the program.

    If it does work in Firefox Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe Mode|Safe Mode]] start window to disable all extensions.
    *Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for