ADF: Session timeout problem using the JavaScript window.open() method

Hi all

I have a commandImageLink on my page, with partialSubmit = true, clientComponent = true. ClientListener the link calls a JavaScript onClick, the fire with a clientAttribute that contains the URL for the managed bean.
It works very well - the new window opens successfully. But the performance of any activity on the parent window, the session expires immediately.

The ciLink aims to open the URL in a new window and I can not change this feature.

I've tried (and failed)-
1. put the ciLink within the tag < h:form > and using target = "_blank".
2 actionListener on ciLink to JavaScript fire.

I use JDeveloper 11.1.2.1 with weblogic 10.3.6, JSF 2.0.

Thank you
Yacoub

Hi Anirban,

Try to change the session cookie in weblogic.xml, seems to be cleaned each time that you access the external link:


  JSESSIONID-MYAPPLICATION

AP

Tags: Java

Similar Questions

  • Javascript window.open() options can request to the page itself?

    For the experienced:

    After I finished writing the application (using JDeveloper 10.1.3.4) there is a new requirement for her: for the entire application, each page only the content area must be visible (like what full screen did in Internet Explorer) menu bar, toolbar, status bar, title bar,... of the browser everything should be hidden, especially the URL of the page should not be visible.

    I thought about the javascript window.open() method and found the options 'channelmode = yes, fullscreen = yes' to meet this requirement:
    window.open("http://URLOf.theFirstPageOf.theApplication", "_blank", "channelmode=yes, fullscreen=yes")
    These options are supported by Internet Explorer only if; Firefox will always display the title bar and the URL with these options value. First of all, this is what I found; are there other ways to achieve the same effect?

    It's OK to be limited to use only Internet Explorer. But the problem is that the 'channelmode = yes, fullscreen = yes' to take effect only when the second parameter is "_blank" to open a new browser window. I tried to "_self", "_parent", then no new window has been opened, but "channelmode = yes, fullscreen = yes" did not effect either.

    Is there a way to get around that, that is, get the page itself in full screen, without having to open a new browser window?

    Thank you very much for help!


    Newman

    Hello

    don't forget that you could start a browser in kiosk from the command-line mode. So, if the application is started from the desktop, then this might be an option. However, for a change in distance of the window I don't see how this can be done. You can minimize the window root which creates the new window, but you can not close

    Frank

  • problem using Javascript window.open Apex 4.2

    I'm trying to use javascript to open a new window in Apex 4.2

    When the user clicks a button on the item, I want to open the page in a new window

    That's what I coded:

    On the button

    under "the ACTION ONCE the BUTTON has been CLICKED" I select "redirect url".

    then enter this: javascript: window.open ('f? p = A:P: & SESSION.) ") ;  where A is the number of the application and P is the page of the application

    This method works.

    Click the button and a new page opens

    the problem is that the old page; the one I was on, disappears. It becomes a blank page with "[object]"displayed in the top left corner, nothing else on the page.

    Is there another way to do this?

    Try wrapping it in a vacuum similar to this:

    JavaScript:void(Window.Open...);

    or to add with

    Returns false;

    as

    JavaScript:Window.Open (...); Returns false;

  • When I try to use the Skype window having problem

    When I try to use the Skype window having problem

    Hello

    you don't say what problem?

    and if the problem only occurs when using Skype, ask the Support of Skype

    https://support.Skype.com/en/

  • Error handling/Session Timeout with APEX &amp; Ajax / Javascript

    In our project, we have the problem, what a session timeout can occur when the user stays on the same page and a jQuery/JavaScript/ajax process is used.

    If a request for action called in a popup ajax without an active session process the HTML for the login page is the user.

    How a management capable errors that no html will be displayed in the pop-up window?


    Further there are external JavaScript files which need to read the content of elements of the application.
    Is there an elegant/small/reusable way to get the value of the elements of the application?
    The & APP_ID. The syntax does not work in external JS files.

    Hi Oliver

    Personally, I think that if you get a timeout that the popup is closed and your parent page is redirected to the login page. By using a cheque as a reminder of the success/error during an AJAX call you inspect the xhr.responseText to work if you have received a timeout would be recommendation and if found close the context menu, and then assign him the login page window.location.

    However for AJAX calls not you will face a problem. In this case, you need a script in your login page that checks the window.opener and if so close the popup and sets the window.location opener to your login page. for example, I would like to add something like this to your header login page or login page model header.

      
    

    Note: only tested on FF. In addition, the javascript above is just a very basic example and will close all popup which displays the login page and reload the parent with the login page. It can lead to an undesirable feature for web pages open your app in a popup, since it will be automatically shut down and recharge the calling page that could frustrate people. In this case, you will need to add more conditional logic in the script to check the current window.opener.location to check if the URL is for your application and then perform the close and reload action.

    Of course, there are other ways to manage what is happening it is just an option I would like to Explorer.

    If you need to read the values of the elements of application not page elements in javascript, you need to add a script to your page footer that defines these example

    
    

    To get the value of an element of the application:

    apex.appItem('MY_APP_ITEM1');
    

    In the script above the request item values are secure prevent changes since they are accessible through the service such that they are defined as local variables to the breast. The only issue you will face access the value of an element of application which is been updated in session state by a process of AJAX. With the help of local values printed on the page rendered as it can get out of sync. If your item applciation values include line breaks or double quotes then you must escape them, if you need this support use a region of page PLSQL and escape the output after JSON script item values.

    In the example I use apex Namespace, some people may argue it's a bad habit, but for me, I like to keep everything apex linked together. He has pro of / jerks to the argument, if the decision is yours.

    Note: the reason to add the script to your footer must ensure that the values of point of application have been in session state, before they are issued.

    The previous post of VC is the right way to access the elements of the entry page and DOM values.

    See you soon
    Matt

  • Pass variable from ColdFusion to the JavaScript window

    Hello world

    I have a java script window that will open when the user clicks on the link, my problem is that how can I pass a ColdFusion variable to the window. I use ColdFusion 7 so I can't use cfwindow.what should I put on the place * ? I tried to put EntityId in the location javascript:poponload (EntityId);   and function poponload (EntityId), not ' t not work then please let me know if you know how to do this.

    My code:

    < SCRIPT language = "javascript" >

    function poponload()

    {

    Window.Open (' test.cfm? test = '* , "mywindow", "menubar = 1, resizable = 1, width = 350, height = 250');

    }

    < /script >

    < body >

    < cfform >

    < cfset EntityId = '#form. EntityId #" > /i want to spend EntityId to the javascript window "

    < / cfif >

    < a href = "javascript:poponload();" "> find ID < /a >

    < / cfform >

    < / body >

    Thank you, Rob - appropriateness to the subject, not you (or someone) know what I'm doing wrong with the code below? (the message in the "alert" box is #x #, if the function is not picking up the Coldfusion variable, x). Thanks in advance!

  • When I download something on the Web, the "Downloads" window opens, but that the window remains empty. Before it used to show at least the name of the file and I was able to open the file in the "Downloads" window Is it possible to recover this feature?

    I am running Windows XP that is updated to the latest version (which I think could be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine, so most of the stuff I download comes through sites found through Google, which is also updated.

    At some point in the past (there are maybe a few versions) when I want to download a file from the Internet, the "downloads" window opens and in the window would display the name of the file I got was download or came from download. I think I used to be able to then click on the file name and opens the file (or the Setup file if necessary to launch the new program). I am currently using Firefox 5.0 (screen "On Firefox" said that it is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it has always in the past, but it remains empty, that is, nothing is displayed in the download area. I don't remember to make configuration changes, etc., that may have caused the window to remain a Virgin, but I could be wrong. I know how to find the items I downloaded (My Documents / downloads) and can generally guess what might be the name of the downloaded file, but it was much easier when something (anything) appeared in the downloads window.

    I'd like someone to tell me about a simple solution for this. I'm ready to be pretty embarrassed that I did something I should not have.

    In the Firefox Options / confidentiality be sure 'Remember download history"is checked. To see all the options on this Panel, "Firefox will be" must be set to "use the custom settings for history".

    To find your OS information, on your Windows desktop, right-click on the icon my computer, choose Properties, this little window is info on your operating system.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Select CTRL or copy, does not work - using the new Windows 7-

    Using the new Windows 7, it still does not work:

    > To select the non-consecutive files or folders, press in and hold the Ctrl key and then click each item you want to select.

    There is also the same problem when you use the Ctrl key to 'Copy', rather than 'move '.

    Sometimes a reboot will fix it, but other times not. Is it an appropriate solution for the Ctrl key work properly?

    Hello

    It is difficult to imagine a particular key for only certain combinations of keys does not?

    Here are a few troubleshooting steps that you can try to isolate if all goes well the problem.

    1. start the computer Safe Mode and try to reproduce the problem. Start your computer in Safe Mode

    2. perform a clean boot, and then follow the instructions in the following article to help identify the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    3. create a new user account, log in to the new account and test the issue. Create a user account

    If this step resolves the issue, is that your user account may be damaged. Replace

    your original user account.  How to fix a corrupted user profile.

    Let us know the results.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • problems using the snap have amd, playback of Jpeg files

    Original title: I'm having problems using the component feature snap-in.

    Sometimes a single document disappears. When this happens while the document program is managed by then will not work. The document seems to be flying around the office. The last time this happened I had a doc JPEG upward and now I can't see what is JPEG. I don't know why the document wants to fly around, and I don't know how to get my use of the JPEG back.

    Hey Graham,.

    To view all jpeg images in the Viewer Windows photo or any other photo software visualization, you must configure this software as a default value in the default programs.

    Check out the link that allows you to configure the program as default.

    http://Windows.Microsoft.com/en-in/Windows7/change-which-programs-Windows-uses-by-default

    You can try to run the Aero Troubleshooter and see if that makes a difference.

    http://Windows.Microsoft.com/en-in/Windows7/open-the-Aero-Troubleshooter

    If the problem persists, provide us newspapers observer of events, as well as the error message if you receive a message.

    http://Windows.Microsoft.com/en-in/Windows7/open-Event-Viewer

  • Photoshop is slow... I have no problem with the computer (windows 8) mine

    Photoshop C5 is a bit slow... no problem with the computer (windows 8.0)

    Hi maxarcitecture,

    Suggest you to reset the settings of Photoshop and then check

    Using Photoshop | Preferences

  • Having a weird problem with the new window. Download the old look of firefox with incorrect URL and messy appearance.

    I opened a new window in the main window of Firefox. The new window is nothing like on the main window of Firefox 4 Beta. And when I have tabs in a new window, the URL doesn't change. Infact, it changes nothing in the tabs. It remains that if I change it manually.

    I do not encounter this problem in the main window of Firefox. If I open a new window of hand. Why is this?

    Take a look at the screenshots I did.

    Main window
    New window

    You may also notice the tab I'm the and the URL is displayed in the image of the new window. You can see what I'm talking about here.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

    Create a new profile exclusively for version 4.0 beta and create a shortcut on the desktop with Pei 'profile' attached to the target to launch this profile.

  • How to use the utility "Windows Chat" Window XP (between two computers or more)?

    How to use the utility "Windows Chat" Window XP (between two computers or more)?

    Please provide your suggestion step by step

    Hello

    Maybe this can help, http://support.microsoft.com/kb/308232

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Can I use the product windows XP from my old CPU key to downgrade my new processor from Vista to XP?

    Vista to XP question

    Can I use the product windows XP from my old CPU key to downgrade my new processor from Vista to XP?

    N ° decommissioning requires installation of XP from an XP installation cd and a retail product key.  If XP is preinstalled on the old computer, the product key on the label is valid for the copy of XP OEM is installed on your old computer, even if it is still on the old computer.   An OEM license is not transferable to any other computer.

    Before you plan to install XP on your new computer you must visit the manufacturer's Web site to see if the XP drivers are also available.

    What you trying to accomplish?

  • Can I use the same windows on my virtual machine?

    I had windows pre-installed in my dell laptop (Latitude E6420). I did not have the cd key but I extracted using a program called Magical jelly bean key finder. Now, I have the following information on my windows installation

    Windows 7 Professional Service Pack 1
    Product no.: XXXXXXXX
    Installed from media "OEM."
    Product ID: XXXXX-OEM-XXXXXXXX
    CD Key: XXXXXXXXXXXXXXXXXXXXXXXX
    Computer name: XXXXX
    Registered owner: XXXXX
    Registered organization: Microsoft
    Now, I want to install linux on my machine and use the current windows in a virtual machine inside the linux host. Is is possible if I completely uninstall this windows of my computer and reinstall the virtual machine with the same key?
    I'm not very familiar with this also can someone guide me what are the steps I have to take if this is possible.

    Hi Andre,

    Thank you for your answer, but this does not completely answer my question. I also read that OEM installation does not install the same windows on another machine (virtual machine is like different machine even if I do this on the same machine) and installation of the mine is OEM type.

    More important still, how install windows in the virtual environment? If I format the computer and install linux, in addition to this install virualbox and install inside windows that use the cd - key and it will work. ? I doubt it because the windows is already activated in this machine.

    The extract of the contract (EULA) for Windows 7 and applies to the retail and OEM of Windows 7 versions. So, Yes, you can reinstall it in a Virtual Machine.

    Yes, you will need to format the machine under Linux, then reinstall Windows 7 in a computer program virtual suitable as Oracle Virtual Box 4.2, VMWare Player 5.0 or VMWare Workstation. You can then use the product key located on the COA sticker to reactivate the license.

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

Maybe you are looking for

  • Satellite X 200-15 K - I want drivers for Windows 7

    I waited for months and even you you created drivers for x 205 for the months of usa there is Windows 7 drivers (x 205 and x 200 are very similar) you did nothing for x 200. Don't tell me that x 200 is an old laptop, it is upscale and costs a lot of

  • error date time

    that the pc is on time and date are wrong synchronization with windows or any other shows an error

  • HP DV2000 (2415nr) starting problems

    Hey everybody!  I have a HP DV2000 which has been given to me, as they were tired of the problems with it.  When I started upward, she flashed the screen where you can press ESC or F11 to enter the secondary screens, but he immediately askes me for a

  • Execlp using open system processes

    I try to use function execlp jointly with the function fork to invoke the process of the system zip to compress files in my folder of data. The problem is simply, it does not work and I do not see any file zip in the destination folder. This is the c

  • Find the device based on serial number

    Hi all I got a spot on place to locate the Cisco gear in our (hundreds of them), got the serial number but wonder if there is a smart way to find out where is this piece? rather than 'show version' on each device, then look for the serial number. Ple