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

Similar Messages

  • What is the correct way to create links to my website?

    Hi
    My site is finally finished and I am now looking to list it on various directories on the internet to generate links to my site.
    When my site opens in a browser it shows up as http://ateccomputerservices.co.uk
    I know this question has been asked many times on the internet but what is the correct way to post my link?
    I know I should be consistent and use www or not on every link but none of the articles tell me whether I should use http:// or not when linking.
    So for example, should I use...........
    http://ateccomputerservices.co.uk
    or
    http://www.ateccomputerservices.co.uk
    or
    ateccomputerservices.co.uk
    or
    www.ateccomputerservices.co.uk
    and should I put /index at the end?
    Once I've decided on which link to use should I redirect all the other addresses to the main one?
    I'm pretty new to web design so I need some advice from some seasoned experts
    Thanks for taking the time to read my questions!

    When you browse to http://ateccomputerservices.co.uk and to http://www.ateccomputerservices.co.uk do you get the same page?  Most hosts will automatically create a CNAME record for both 'www.example.tld' and 'example.tld' when the hosting account is created, but not all do.  If that second CNAME record is not created, then you must always use the "www" prefix.
    If the reference to your site is a text reference only, then you could just use 'www.ateccomputerservices.co.uk', but if it's a link you should always make the LINK part (the HTML href attribute's value part) as a fully qualified URL, i.e., 'http://www,ateccomputerservices.co.uk' or 'http://ateccomputerservices.co.uk':
    <p>Click <a href="http://ateccomputerservices.co.uk">here</a> to link to my site .</p>
    When a browser requests that domain from the server, the server will fetch the first file it finds with a 'default filename' (usually 'index.html' or 'index.php' or 'home.html' or...) and upload that to the browser, so there is no need to further specify the filename - the default is when no filename is given.
    Once I've decided on which link to use should I redirect all the other addresses to the main one?
    I'm not sure what you are asking here....
    I'm pretty new to web design so I need some advice from some seasoned experts
    In the immortal words of comedian Myron Cohen, "everybody gotta be somewhere".

  • What is the correct way to add styling to drag-and-drop created calendars?

    I have a working instance of a rich client calendar. I generated the view with the required fields (start, stop, provider, ...), put it into the App Module, and dragged it onto a JSF page to create a calendar.
    Next I created an activityScope object in a class called CalendarBean (no inheritance)
    Class CalendarBean()
    private HashMap<Set<String>, InstanceStyles> activityColorMap;
    +..+
    +public CalendarBean() {+
    super();
    activityColorMap = new HashMap<Set<String>, InstanceStyles>();
    HashSet setEd = new HashSet<String>();
    HashSet setLen = new HashSet<String>();
    setEd.add("Work");
    setLen.add("Home");
    activityColorMap.put(setEd, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityColorMap.put(setLen, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.RED));
    +}+
    +}+
    Next, I linked this up as a backing bean and associated the ActivityStyles of CalendarBean to it:
    +#{backingBeanScope.calendarBean.activityColorMap}+
    I populated some records in the database with properties "Work" and "Ed', but they show default blue.
    As I understand it, I need to do something with the getTags() method of the underlying CalendarActivity class, but I'm not quite sure how to do that.
    Took a stab at creating a class, CalendarActivityBean, that extended CalendarActivity, and pointed all the CalendarActivity references I had to the new class, but it didn't seem to fire (in debug), and I got into trouble, when inserting records, with
    public void calendarActivityListener(CalendarActivityEvent calendarActivityEvent) {
    currActivity = (CalendarActivityBean) calendarActivityEvent.getCalendarActivity();
    being an illegal cast
    What is the correct way to add provider-based styling to drag-and-drop create calendars?
    Ed Schechter

    A colleague of mine was kind enough to solve this:
    The calendar has ActivityStyles property = #{calendarBean.activityStyles}
    CalendarBean looks something like this:
    package com.hub.appointmentscheduler.ui.schedule;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Set;
    import oracle.adf.view.rich.util.CalendarActivityRamp;
    import oracle.adf.view.rich.util.InstanceStyles;
    +public class CalendarBean {+
    private HashMap activityStyles;
    private String dummy;
    +public CalendarBean() {+
    +// Define colors+
    activityStyles = new HashMap<Set<String>, InstanceStyles>();
    HashSet setPending = new HashSet<String>();
    HashSet setArrived = new HashSet<String>();
    HashSet setApproved = new HashSet<String>();
    HashSet setCompleted = new HashSet<String>();
    setApproved.add("APPROVED");
    setPending.add("PENDING");
    setArrived.add("ARRIVED");
    setCompleted.add("COMPLETED");
    activityStyles.put(setApproved, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.GREEN));
    activityStyles.put(setPending, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.ORANGE));
    activityStyles.put(setArrived, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.PLUM));
    activityStyles.put(setCompleted, CalendarActivityRamp.getActivityRamp(CalendarActivityRamp.RampKey.LAVENDAR));
    +}+
    +public void setactivityStyles(HashMap activityStyles) {+
    this.activityStyles = activityStyles;
    +}+
    +public HashMap getactivityStyles() {+
    return activityStyles;
    +}+
    +}+
    Now, go into the Bindings tab on the calendar page, double click the calendar binding, and specify the column you've defined as the calendar's Provider in the Tags dropdown.
    Should show colors.

  • What is the correct way to call older version of Adober Reader?

    What is the correct way to call older version of Adober Reader? Specifically version 8? Acrobar Reader 8 or Adober Reader 8? Is is necessary to include "Reader"? We are creating a form and are adding instructions that it works with version 8 and newer. We want to make sure it is worded correctly!
    Thanks!
    Danielle

    When you "Save as" and you select the "compatibility with" for older versions, the document will be compatible with whatever version you choose, be it 4, 5, 6, 7, 8, or higher. If you want to "test it", you'll need a computer with Reader 8 installed, but I've never seen the "Save as" make something that was incompatible with the version it was saving for.

  • What is the correct way to unistall an application?

    simply dragging it to the trash is very likely to leave files/preferences scattered everywhere. what is the correct way to uninstall? (App = Microsoft Silverlight). Thanks

    chriswalsh wrote:
    The installer for Silverlight installed it as a seperate volume displayed on the desktop...
    Likely that's not the app itself. When you download most Mac software, you are downloading a .dmg file (a disk image) - opening that (which may happen automatically) mounts a disk image on your desktop, and then you drag the app from that disk image to your Applications folder (or an installer runs).
    After copying/installing the app, you Eject the disk image, then delete the .dmg file (from your Downloads folder, probably).

  • What is the correct way to destory a Thread?

    Just wondering what is the correct way to destroy a thread? I am currently using the stop() method, but i noticed that it has been depreciated (along with other methods used to destroy a thread) when i looked at the thread documentation. Since this is so, then how can one correctly destroy a thread? Thanks in advance for the help.

    There is an awful lot of bad advice in this thread about what null does. Please in future check on your own with working code before offering up misguided and very wrong advice. Particularly when your advice contradicts that previously given.
    Please compile and run the following
    public class Test implements Runnable{
      public static void main(String args[])throws Exception{
        Test test = new Test();
        Thread t= new Thread(test);
        t.start();
        // have delay wait a few seconds to demonstrate
        Thread.sleep(3000);
        System.out.println("Setting reference to thread to null");
        t = null; // what does this do?
        // jack all
        System.out.println("Exiting main");
      public void run(){
        while(true){
          System.out.println("Hello from test thread!");
          try{ Thread.sleep(750); }catch(InterruptedException iDontCareAboutThis){}
    }This will output the following
    C:\>java Test
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!
    Setting reference to thread to null
    Exiting main
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!
    Hello from test thread!And continues on endlessly. Setting the reference to null is NOT an answer to this problem.

  • What is the best way to open emails and attachments without using wifi?

    For I-phone and I-pad, what is the best way to open emails and attachments without using wifi?  I turned off wifi in my settings but my boss thinks there may be another way and a better way to use something else instead of wifi.  Any help would be appreciated!  Thank you!

    Thanks!  That is a very good question you post.  My boss asked me that and I am assuming that he is having issues with using wifi wherever he is at.  My boss is the kind of person that when he asks something you look into it and ask him no questions...he's the only one asking questions!  But thank you for your response I will tell him the information you told me and hopefully that will help!

  • What is the best way to open a HTTPS connection?

    What is the best way to open a HTTPS connection and retrieve the content as XML? This is how most of the online API is done nowadays, how can this be done on the iphone SDK?
    Thanks

    Have a look at the SeismicXML example that comes with the iPhone SDK. It uses http instead of https but it may work for you.
    You can also look at the NSURLRequest and NSURLConnection classes.
    Enjoy.

  • 1.4.2 - What is the correct way to format output in the java.io.PrintStream

    With Java 1.4.2:
    What is the correct way to format output in the java.io.PrintStream?
    The following is incorrect, even though it is still used in the The JavaTM Tutorial at: http://java.sun.com/docs/books/tutorial/essential/
    System.out.formatThis returns "cannot resolve the method 'format'"
    Any detailed suggestions or information is greatly appreciated.

    The following is incorrect, even though it is still
    used in the The JavaTM Tutorial at:
    http://java.sun.com/docs/books/tutorial/essential/
    The whole format thing has been introduced in 1.5. The tutorial also states it's been "updated to 1.5.".
    That's all I've got to say for I don't know how you can format a PrintWriter, let alone a PrintStream, prior to 1.5. I'm not really sure there is any way. Any "legacy way", that is. There almost certainly are third-party API which achieve similar results.

  • What is the correct way to upgrade 5.0.4 to 5.1 Universal?

    I just received Final Cut Studio Universal, and I have Final Cut Pro 5.0.4 installed what is the correct way to upgrade all the Final Cut Studio applications? Do install over or delete each application and then reinstall?
    As always thanks in advance for reading and replying to my Post,
    Sebastian

    WHEN I do it, I'm going to archive what's necessary and desirable to keep, erase my hard drive, reinstall Tiger, do the upgrades, then install 5.1 clean and do the upgrades.
    Might sound like overkill, but I really love a clean, fast machine and nothing does it better!

  • What's the quickest way to open Access Connections?

    What's the quickest way to open Access Connections, apart from its Taskbar level meter?
    I prefer to use the Power Manager battery meter instead, as it looks pretty ugly when both are used, and they take up too much space.
    Fn+F5 no longer gives any access to Access Connections either.  And it is not integrated into the standard Windows network system tray icon's right-click menu, like Power Manager is with the standard power system tray icon.
    You cannot even type Access Connections in the Start Menu search box, as the shortcut is called something else, which I can never remember.
    Ideally, I would at least like to be able to access it though the Fn+F5 box again (I'm pretty sure it was possible in versions).
    jason404 - X220 (my sixth ThinkPad)

    If you are still interested in using a translator, I recommend the [https://addons.mozilla.org/en-US/firefox/addon/gtranslator/?src=userprofile gTranslator] add-on.<br>
    This add-on is similar to the Google Chrome translation bar.

  • What's the correct way to handle changes in RDBMS/DBadapter?

    In my project all changes to the database are not done via Jdeveloper but via TOAD. This means DBadapters must be made aware of changes in the database.
    I tried to re-run the DBad.apter wizard twice (2 different services) - to make it aware of changes in the DB. Both times it failed. I think was after the import database tab. The next tab was just blank.
    So what's the correct way of reconile changes in the db backwards into Jdev?
    BTW, in the DBadapter wiz its not possible the remove a already imported table. How do I come across the situation where I want the DBadapter to point to af different table? - and possibly remove old references to another one - which might have been removed in the DB.
    As It is now - I have to re-work all my DBadapters, which is not very much fun...
    Rgds, Henrik

    Trust me, I hv done that umpteen nbr of times.
    I hate BA's coming to me with changes, for which I hv to modify the DB adapter.
    One big loop-hole with BPEL is if we try to modify the adapters/toplink, it doesnt tend to work properly.
    The manthra for such modifications is ... "recreate", which is definetely not a good practise.
    You may not like but gottu live with it, my friend.
    Pointing to a different table, I achieve it by doing a "Shift+Delete" to all the references of the old table in the BPEL project ... :|
    There isnt a specific provision in the wzd (I am not sure of the latest version, though).

  • What is the correct way to charge mac air battery?

    what is the correct way to charge macbook air battery? mine is a 2011 mac air

    Apple - Batteries - Notebooks

  • Sapinst - what is the correct way to startup sapinst

    I am starting install of NW04 on unix. The install manual states that once env paramters are set then do the following:
    cd /SAP_MASTER_DVD/IM2/SAPINST/UNIX/SUN...
    then run ./sapinst
    however run I run it it just waits.....
    I then go back in another session and run startInstGui.sh
    and the sapinst install screen successfully appears?
    Is this the correct way to run the install?
    What is the correct way to run sapinst?
    Thank
    John Ryan

    Figured it out...
    sudo su root not - root
    and it works

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

Maybe you are looking for