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?                                                                                                                                                                                   

Similar Messages

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • What is the correct way to open new window with launchDialog & returnDialog

    Hi,
    JDev : 11.1.1.1.2.0
    My current page url is http://127.0.0.1:7101/ThruputApplication/faces/Test.jspx?_afrLoop=21785535204821&_afrWindowMode=0&_adf.ctrl-state=d1x4f8z6p_9 and
    From this page, I trying to open new browser window using command button's action method with below code
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ViewHandler viewHandler =
    facesContext.getApplication().getViewHandler();
    StringBuilder strBuilder = new StringBuilder();
    UIViewRoot dialog =
    viewHandler.createView(facesContext, strBuilder.append("/reports/LPLReport.jsp?").append(sURL).toString());
    Map properties = new HashMap();
    properties.put("width", Integer.valueOf(500));
    properties.put("height", Integer.valueOf(300));
    AdfFacesContext afConetxt = AdfFacesContext.getCurrentInstance();
    afConetxt.launchDialog(dialog, properties, null, true, null);
    New browser window is getting open successfully but after opeing this new window if I do any operation such like selecting item from selectOneChoice or checkbox selection from the screen from which I have launce new browser window then is giving me below message.
    Are you sure you want to navigate away from this page ?
    There are one or more dependent dialogs open. Navigation from this page will invalidate any open dialogs.
    Press OK to continue, or Cancel to stay on the current page.
    I have also tried AdfFacesContext.getCurrentInstance().returnFromDialog(null, null); to return dialog but its giving me below error:
    <DialogServiceImpl><returnFromDialog> No 'DialogUsedRK' key available for returnFromDialog to do the right thing!
    <Reports><generateReports> Exception
    java.lang.IllegalStateException: popView(): No view has been pushed.
         at org.apache.myfaces.trinidadinternal.context.DialogServiceImpl.popView(DialogServiceImpl.java:88)
         at org.apache.myfaces.trinidadinternal.context.DialogServiceImpl.returnFromDialog(DialogServiceImpl.java:182)
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.returnFromDialog(RequestContextImpl.java:132)
         at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.returnFromDialog(AdfFacesContextImpl.java:318)
         at com.enbridge.forecasting.tps.backing.reports.Reports.generateMsgRptGenerated(Reports.java:2602)
         at com.enbridge.forecasting.tps.backing.reports.Reports.generateReports(Reports.java:1212)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please give me the solution so that I can stay on the screen and can continue with that screen after opening new browser window.
    Currently after opening new window as mentioned above, I can't do anything. If I press ok button then it will give me login page and if I press cancel button then my screen component's state become invalid.
    Regards,
    devang

    Thanks Frank,
    We have resolved the issue. Cookies max age was set as current browser seeion in websphere.
    After changing it as some max seconds, it is working fine.
    Mohanraj M

  • Is there any way to have new windows open in a different location besides on top of the current one?

    I work with a data entry company and I'd like to have a New Window open on the right side of the screen instead of constantly opening directly on top of the current window (which is about 1/2 the screen on the left). Is there any settings or add-on that will let me do this? I have to do this a lot when I'm working and constantly having to drag the new window to the right so I can see it and work in the window on the left is a pain.

    You could try using the Custom Geometry extension and see how that works for you. ''I have been having problems with it on WinXP since Firefox 4.0 was released last year, maybe it will work better for you on Windows7.''
    https://addons.mozilla.org/en-US/firefox/addon/custom-geometry/
    In Options for that extension setup additional Custom Geometry options ''(height, width, left, & top)'' with different offsets, and when you open an additional window use the drop-marker on the CG toolbar button to select the offset you want for that new window.
    That drop-marker menu hasn't been working properly on my PC, but I use still use CG when running multiple Profiles - each with a different offset, so that I have access at the edge of the current window to "grab" another Profile when I want.

  • 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

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

  • Required information about opening new window using hotkeys...

    Hi,
    From my application page, a new window have to popup with few of my table fields (it should be a separate window, Not like when you right click on page you will get a popup with cut, copy, paste etc) using HOTKeys. Kindly point me to the useful docs.
    Regards,
    SelvaKumar S

    Do you mean you need [javax.swing.Popup|http://java.sun.com/javase/6/docs/api/javax/swing/Popup.html] ?
    Create a Popup using PopupFactory, using a Component which listens to your hotkeys.

  • In 3.6, any way to open new Tabs at the right end of the Tab Bar instead of the left end?

    I've just updated Firefox to 3.6.22 from 3.5.19, and noticed a minor behavioral change.
    I often open a list of links in a single webpage into tabs.
    In 3.5, each new tab opened was positioned on the tab bar at the right of the last tab opened - like this:
    Tab1, Tab2, Tab3, --->
    Now, in 3.6, each new tab opened gets positioned at the left side of the last tab opened - like this:
    <--- Tab3, Tab2, Tab1.
    I used to browse each webpage in order left to right. Now it's backwards, a bit like reading Arabic?
    Is this a correct behavior in 3.6?
    If it is, is there a way to change it to the way it behaves in 3.5?
    (about:config ?)
    Thanks

    You can set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • Open new window using javascript in flash

    what is wrong with the following? I keep getting the 3 errors
    below. I have checked and rechecked but can't find my mistrake.
    on (release) {
    getURL("javascript:newWindow=
    window.open('
    http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress.html','popper1',
    'width=425,height=300,scrollbars,resizable');
    newWindow.focus(); void(0);");
    Errors are below:
    **Error** Symbol=contact, layer=Layer 1, frame=1:Line 2:
    String literal was not properly terminated
    getURL("javascript:newWindow=
    **Error** Symbol=contact, layer=Layer 1, frame=1:Line 3: ')'
    or ',' expected
    window.open('
    http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress.html','popper1',
    **Error** Symbol=contact, layer=Layer 1, frame=1:Line 5:
    String literal was not properly terminated
    newWindow.focus(); void(0);");
    Total ActionScript Errors: 3 Reported Errors: 3

    i am now down to only 1 error. How the script looks and the
    only error generated are below.
    on (release) {
    getURL("javascript:newWindow=
    window.open('
    http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress.html','popper1',
    'width=425,height=300,scrollbars,resizable');
    newWindow.focus(); void(0);");
    error below:
    **Error** Symbol=contact, layer=Layer 1, frame=1:Line 5:
    String literal was not properly terminated
    newWindow.focus(); void(0);");

  • I used to work on few open windows with a number of open tags, for some reason firefox stopped opening new window, any reason why?

    I have been using firefox for a while. I usually work on a number of windows (sometimes up to 8) with 8 - 10 tags in each. I was using a trial version of Nero and was triggered for an upgrade which i stopped half way through. I dont know if this has caused this problem. Now I cannot open any link in a new window. It will only open in a new tag of the same window.
    == This happened ==
    Not sure how often
    == when i stopped an upgrade from Nero

    -> IF you use Privacy Cleanup softwares like CCleaner, DON'T SELECT FIREFOX IN ITS SETTINGS. These softwares can be responsible for Deleting your Firefox Settings.
    Perform the suggestions mentioned in the following articles:
    * Make sure you are using the '''"Remember History"''' setting as described in this article -> [[Settings for privacy, browsing history and do-not-track]]
    * [[Restore previous session - Configure when Firefox shows your most recent tabs and windows]]
    Check and tell if its working.

  • Using Firefox 5 in Windows 7, once I have Firefox open, I can no longer open a new window using the start button. How do I fix?

    As I stated, I have Windows 7 on my laptop and have installed Firefox 5. I sometimes like to have multiple windows of the browser open. But, unlike any previous version of Firefox, now when I have the browser open, when I try to open a new window using the Start menu, it will not open one. I have to use Ctrl+N. Why did this change?
    This may seem insignificant but it really hampers my work flow. For one, with other applications, Shift+N is what opens a new window. For two, I've been doing with with my browsers for years now and it's like second nature for me - having to remember that in Firefox it's Ctrl+N is a pain in my tuccus.
    Firefox is my go to browser and I would like it to stay that way. Please find the solution for me! I have tried looking using Tools, Options, as well as looking at my start menu and taskbar options, and no dice.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Is there any way to open a file with a .msi extension on my new mac?

    I have Camtasia from the pc I was using. It has a .msi file extension for the installation file. Is there any way to open the Camtasia installation file with the .msi extension on my new Mac?
    Thanks,
    Jerry

    That's a Microsoft program which requires Windows. You could run on your Mac if you install Windows on it.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this was Safari preferences, open new window to homepage...

    I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this under Safari preferences, open new window to homepage...

    Safari is opening using the resume feature. To disable that, quit Safari using Command+Option+Q or Hold Option when choosing the menu item Safari>Quit.

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

Maybe you are looking for

  • BAPI for Create PO from Sales Order Data and POST GR from PO created

    Dear,          Can u help me how to create BAPI for Purchase Order creation from sales order Data           what the bapi to Post GR from the PO created. Regards, Manoj

  • MMS messages

    I can only send or recieve mms messages if I have my mobile data turned on. It will not work if my secure wifi is on. Anyone know how to fix this?

  • STO - Partial Reversal of Goods

    Hello, I would like to know how to reverse the goods movement for a STO Delivery Partially. What is the movement type that i use for it. step 1: Create a STO. Step 2: Create a Outbound Delivery and do a PGI. Say 100 Units. Step 3: Did a GR at the rec

  • ODBC database access

    Can we access a 'remote' ODBC compliant database through a JSP page being served by Weblogic? I know that the bridge cannot be used as it is not threadsafe but has that changed or is there any other way? Also, can we link in libraries within Weblogic

  • Backup iphone contacts to pc from phone

    Itunes wants to delete some of my contacts but I want them all saved to my pc ---how ?