Page Flows - opening new windows - losing context values

Hi.. Anyone face this -?
I have a page flow that gets some data from the database and displays it in a grid. The page has a print button that should open a popup with a printable version of the grid. I am storing the rowset in the page flow as an instance variable. Now when I click on print, I call an action in the page flow that opens a new JSP in another window. The JSP is expecting the grid from the page flow context. However, it seems like in the new window, a new version of the controller is getting instantiated, with the rowset being null.
How would I get around this?
Thanks
Kunal

I've had success with the following so far--think it works around the instance label limitation:
* Popup window action. Redirect set to true to unwrap request from portal.
* @jpf:action
* @jpf:forward path="/portlets/full/path/to/this/action/displayNumber.do" name="jumpout" redirect="true"
* @jpf:forward path="Number.jsp" name="success"
protected Forward displayNumber() throws Exception
     String s = this.getRequest().getParameter("jpfScopeID");
     if(s==null || s.equals("")){
          Forward fwd = new Forward("jumpout");
          pageFlowVar x = "test";
          PortletBackingContext ctx = PortletBackingContext.getPortletBackingContext(this.getRequest());
          fwd.addQueryParam("jpfScopeID", ctx.getInstanceLabel());
          return fwd;
     } else {
          Forward fwd = new Forward( "success" );
          fwd.addPageInput("pageInput", x);
          return fwd;
}

Similar Messages

  • Link to page, not open new window

    Hi there
    in Edge, how do I code to link to a page, without opening a new browser window (but also without using _self which caused problems by trying to open the link in the animation window).
    Thanks
    Simon

    So ... just to clarify ... _blank would open a new window, not what I want!

  • How to duplicate browsing windows, instead of reopening the home page, when opening new windows?

    When any new browser windows are opened in Firefox, it reopens and re-reopens and re-re-reopens the home page instead of opening ANY new copies of ANY of the browser windows from which the command "New Window" was originally made.

    Try this extension:
    Clone window: http://www.pikey.me.uk/mozilla/?extension=cw

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

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

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

    I think the following, quote below, from the help page is my problem.
    I have this one website I use that when I click on a link within the website it is opening a new window with the tab at the bottom. Also, when this happens, I am losing the orange FireFox rectangle, bookmarks and navigation options. How can I set FF31 so that the link opens in a new tab and I keep all my options? I am using Classic Theme Restorer 1.2.3. I also notice 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 is working perfectly and the other is having this problem. As far as I can tell they are both set up 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 go under about:config that the version of FF that is not working has fewer available options versus the version that is working. An example would be that the working version has "browser.tabs.onTop" where on the other laptop this 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 new windows are opened 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 will open a new window from a link if the page author specified that the new window should have a specific size, because some pages can only be displayed correctly at a specific size.<<<
    Thank you in advance for any help,
    yeto

    You can override how links are opened via the browser.link.open_newwindow.override pref.
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    Use this for links opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features

  • Button on page opens new window, session times out in old window

    Hi,
    I've created a custom page and added a button through personalizations in Oracle that opens the new custom page in a new window. When this happens, though, the original window throws the following error when a user attempts to use any functionality in that page:
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    More specifically, the new button has been added to a LOV page in Oracle. Navigation would be: Create timecards page, click on Task LOV button (this opens new window for Task LOV), new button is on this Task LOV page. The new button then opens the custom page, and when the user returns to the Task LOV page to select a task they receive the error.
    How do I prevent this error when the new custom page opens from the button?
    Thanks in advance for your help,
    Suzanne

    I have an update to this issue:
    I found that adding the value &retainAM=Y to the button URL for my custom page resolves the issue of the time-out in the Task LOV page. However, when I make the task selection in the LOV page and return to the main create timecard page, I find that the session has timed out on that page.
    Any suggestions?
    Thanks,
    Suzanne

  • [ADF Faces] How to open a jsf page in a new window.

    I need to open in a new window a page....
    I have used the Dialog Framework, but it does not work, because the objects is never reseteds, the frameworks was saving the states of it.....
    Then I need only to open the page in a new window, a pop up.
    The CommandButton has not the Target property :(
    thanks

    I discovered it
    private String goPohecamp() {
            FacesContext context = FacesContext.getCurrentInstance();
            // Create the dialog UIViewRoot
                ViewHandler viewHandler = context.getApplication().getViewHandler();
                UIViewRoot dialog = viewHandler.createView(context, "/access/ecamp.jsp");
                HashMap properties = new HashMap();
                //properties.put("width", new Integer(250));
                //properties.put("height", new Integer(150));
                AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
                afContext.launchDialog(dialog,
                                        null, // not launched from any component
                                        null, // no particular parameters
                                        true, //show in dialog
                                        properties);
            //return "goPohecamp";
            return null;
        }Like this is better to me

  • When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs

    When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs
    == This happened ==
    Every time Firefox opened
    == Noticed yesterday, June27, 2010

    i just went into preferences, deleted what was in the home page, and entered a new home page address which solved the problem, 

  • Firefox randomly opens an existing page in a new window

    I open Firefox with no problem - it opens all my existing tabs. When I choose a tab, and run the cursor over a page (no button pressed) Firefox will randomly (not always) open that page in a new window. VERY annoying!

    The problem occurs with no clicking or dragging, but thanks ...
    ~pete

  • I am receiving a lot of pop-up ads on website pages. It has only recently started happening. They open new windows with ads for online gambling, online dating and other things. They are annoying and I want them shut off. Please help me

    I have recently started seeing millions of pop-up ads on website pages. It is not something that normally happens. They open new windows with ads for online gambling, online dating among other things. I am growing sick and tired of these ads, and have tried multiple things. I have uninstalled and reinstalled software, I have blocked pop-up ads and unenabled Java script. I have tried everything I could find, but nothing has worked. I have even downloaded AdBlock and Clean Genius. Nothing has even remotely changed this annoying trait. I hope this can be a quick fix I can perform and not something that will have to be done by a tech-hand. Please, if you know anything about this issue, let me know how to fix it.
    Thanks.

    Unfortunately, you have installed malware by clicking on a pop up ad.
    Removal instructions here >>  The Safe Mac » Adware Removal Guide
    Uninstall CleanGenius >  Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?
    Third party maintenance utilities are not necessary on a Mac and can actually do more harm than good and cannot remove malware > Mac App uninstaller: How to uninstall the Macintosh applications with CleanGenius uninstaller on Mac OS X?

  • How to Open BSP page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi Mahima,
    Use the onClientClick event of the button.
    on_Client_Click="callwindow();"
    <s cript>
    function callwindow()
    win_dow.o_pen("www.sap.com");
    </s cript>
    Please remove the underscores from code.
    Regards,
    Anubhav

  • Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar

    Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar.
    i already tired complete uninstall and reinstall, but the options are still missing.
    print scr: http://www.freeimagehosting.net/9znkp
    Thank You in advance for help. Best regards

    Hello,
    ''jstavene wrote:''
    can find nothing under the tools menu for private browsing?
    Then it's not the same issue.
    If Firefox is set to '''Never remember history''', then you're in “permanent private browsing” mode, in which case the menu item ''Stop Private Browsing'' will be grayed out. Perhaps that's the case, and you don't find the menu item easy to see?
    * [[Settings for privacy, browsing history and do-not-track]]
    If that's not the case, then menu items can be hidden using the userChrome.css file. Check if it exists, and if it's there, rename it, then restart Firefox.
    * http://kb.mozillazine.org/UserChrome.css
    In Firefox Nightly (what will become Firefox 20), per-window private browsing has been added, so the menu item under the Tools menu is gone. It's been replaced by New Private Window under the File menu. I don't suppose it's very likely that you're using such a cutting-edge test version of Firefox though.
    If that doesn't solve the problem, since it's a different issue, it would be best if you would ask a new question.
    * https://support.mozilla.org/questions/new

  • Open a bsp page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi,
    Pls try the below logic :
    <htmlb:button id = "help"
    text = "Help"
    design = "standard"
    onClientClick = "window.open('http://www.sap.com')"
    tooltip = "Help"
    />
    This will work for you.
    Regards
    CSM Reddy

  • Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc

    Worst update ever! On my Vista everything is wrong! Back button never active; If I want open pages as new tab it opens new window; FF starts with blank page instead of Google; No url address shown on status bar when I move mouse arrow on the link etc.. Please Help!

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

Maybe you are looking for

  • Multiple logon for Microsoft Server 2008 R2

    I currently work for the U.S. Government as a System Administrator.  I'm in the middle of an inspection on my system and one of the inspector asked me about multiple logon for Microsoft Server 2008 R2. How many times are you allowed to logon to Micro

  • Iphoto 8 on Mac Pro email button will not create "Larger" images!?

    When I use the email function (from sharing menu or "email" icon) iPhoto generates the same (small) size file no matter which size I choose in the menu. This happens for all originals regardless of the raw size. This is not an issue for me on my lapt

  • How can i upload music with the new itunes

    so i updated the new itunes and now when im syncing my ipod the music isnt going in. can i burn the music then put it in my computer and itunes will accept it and put it into my ipod? can i un-update my itunes 11? please help

  • From where can I select for the apps store according to my own country?

    From where can I select for the apps store according to my own country? I am from Malaysia, just now the message pop out and ask me want to switch to USA store and I choose ok!

  • Fm Radio/ Mp3 Pla

    Hello! I have a MP 3 Player Muvo 200 52 MB and when I try to use Fm Radio it gets block. The scroller stay from Fm radio but must take the battery off to stop. What can I do from this problem? I already format it but doesn't work.