ADF Faces JDev 10g Dialog framework and session timeouts

Hi,
using ADF Faces & BC 10.1.3.4 for a web application with a main page that opens a dialog where the uses fill out stuff and click next until complete. Occasionally they will leave the application open and the session times out and when they go to use it they get the login page inside the dialog. They login but as expected the whole state of their session is lost resulting in no or the wrong record being displayed. Additionally of they go back to the parent window the row keys are all stuffed, they get the first record in the dialog even though the record from the previous session was still shown on the screen.
Any web developer would know to close the dialog and login properly, but this for end users of any experience level.
Is there anyway to prevent the login screen appearing in the dialog or at least direct them to properly re-establishing the session?
Brenden

Hi,
the question is how you identify that the page is loaded in a dialog window. Because if you know this then the redirect would be to a html page that has an onLoad event defined that calls window.close();. Next problem then however is that the calling parent page too is timed out.
Frank

Similar Messages

  • Dialog framework and commandButton doesn't display in new window

    I'm using a af:commandButton to launch a dialog in a new windows with no luck
    I'm using EA1 and ADF EA 19, my command button is
    <af:commandButton text="dialogo"
    launchListener="#{controladorLink.launch}"
    useWindow="true"
    returnListener="#{controladorLink.regreso}"
    partialSubmit="true"
    action="#{controladorLink.accion}"
    actionListener="#{controladorLink.actionListener}"
    windowHeight="200" windowWidth="300">
    Am I doing something wrong? According to the Dialog Framework documentation you need to set an "useDialog" attribute, but it doesn't exists in commandButton, do I need to use commandLink necessarily?
    Thanks

    Did you take care of these requirements?
    The value bound to the action should return a string of the form "dialog:.....".
    Eg: <af:commandButton text="Show More Information"
    action="dialog:showDetail"/>
    And there is a navigation-case that needs to be added to the faces-config.
    <navigation-rule>
    <from-view-id>/*</from-view-id>
    <navigation-case>
    <from-outcome>dialog:showDetail</from-outcome>
    <to-view-id>/showDetail.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    Hope this helps.
    Thanks,
    Balaji

  • Deploying ADF Faces (JDev 10.1.3) to Application server 10gR2 (10.1.2)

    Is it possible to deploy a Toplink/sessionEJBs/Data controls/ADF Faces app (written in jDev10.1.3) to Oracle Application Server (10.1.2)?
    I'm using Application Developers Framework Developer's guide adfdevguide.pdf, which says that you can. However it requires swicthing the JDK to 1.4, which generates compiler errors - 'errorIllegalCharacter' in the sessionEJB, on lines with annotations.
    Is it possible to auto-generate session EJBs for JDK 1.4?
    Thanks
    Robin

    Thanks for the reply Prasanth.
    I can now see why I'm getting the error - because the session bean seems to use EJB3.0 by default. This puts annotations in the session bean code, which fails because I'm using JDK1.4
    If I force the project to use EJB2.0, then when creating the session bean, it ignores of the toplink classes, and when I create a data control, the table related services aren't included.
    Do I need to create either the sessionEJB or datacontrols in a different way??
    Thanks,
    Robin

  • ADF Faces (JDev 10.1.3): How to support the Back Button

    Hi,
    when I scroll through a result set, rendered as a input form with navigation buttons, then use the browsers back button and then try to go to the next row using the 'next' navigation button, I always get an exception: JBO-29000, JBO-35007, JBO-25013
    The sample application was build using JDev 10.1.3, ADF Faces and Business Components.
    I have read through the new Oracle Dev Guide and found some parameters concerning state management and tested different settings. The most promising setting:
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param>
    Regardless of which setting I used, an exception was prompted.
    My questions:
    Are there addtional settings to configure to make an ADF Faces app 'back button' agnostic?
    Is it an ADF Faces or a JSF problem?
    What are your experience and how do you solve the problem?
    I have no idea how to solve the problem.
    Any hints are welcome!
    Thanks,
    Markus

    Hi Marcus,
    we had the same problem in UIX (JDeveloper version 10.1.2) and the official stance of Oracle (we had created a TAR on metalink) was that it was a general webapplication problem and not 'supported' by ADF.
    We created a solution by creating a filter that checks a sequence number in the pages. Each page request was checked and the sequence was increased. The <form> on the pages needed to send the sequence with each request.
    If the user used the backbutton then the sequence would be out of order. We would redirect the user to an error page and rollback the complete model.
    This was our base solution. What we also tried was to use the passivation mechanism of the application module (of Business Components) we would save a snapshot after the rendering of each page and if the user used the back button and the sequence was out of order we would rollback the application module to that snapshot. However after a COMMIT you cannot rollback ofcourse and it gave us some troubles.
    We finally sticked with the base solution and gave the user buttons in the application to go 'back'.
    Regards,
    Robert

  • Dynamic view names in view objects (adf faces bc 10g)...

    I have written an application in adf faces and business components, but would like to be able to add sections to it by simply creating a database view, say with standard names and a suffix, and probably static number of columns (just a read only view). i can handle the front end and logic, but can't see a way to parametise the view names & columns in business component's view objects. I can do things like create a load of dummy views with 10 cols in say selecting 0 from dual then chuck them in the model, which is messy, but would work... Just wondering if there is a cleaner way i can achieve this through the model or any other method, so any ideas that could point me in the right direction would be useful.
    Thanks in advance...
    Tim.

    Hi,
    you may want to investigate into dynamic ViewObjects or dynamicaly adding attributes like example 9 and 29 of http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    See also
    http://www.bloggingaboutjava.org/2006/04/binding-dynamic-view-object/
    Frank

  • ADF Faces: is mixing JSF RI and ADF Faces tags supported?

    Hi,
    I'm looking at ADF Faces as a future possibility for our application that is currently based on JSF RI.
    When looking at the ADF Faces demo it strikes me that all pages are almost completely built up from ADF Faces tags.
    For instance
    af:form
    af:commandButton
    af:inputText
    are used instead of the equivalent core jsf tags f:form, f:commandButton and f:inputText
    I'm wondering if this is mandatory if we would like to use some ADF Faces components mixed within our existing application.
    In other words: are ADF Faces tags supported in the environment of conventional JSF tags? And mixing ADF Faces JSF components with JSF components by other vendors?
    Another thing that strikes me is that pages are constructed using ADF Faces tags for any and all markup content.
    I guess this is meant to support several different clients (normal browser applications, mobile clients, voice activation over telephone) using different renderers.
    In my experience abstracting markup this way inherently means loss of control over the exact markup that is sent to the client. This is not acceptable for all projects and customers.
    Is embedding ADF Faces tags within template HTML, within f:verbatim tags or not, supported?
    Regards,
    Joost de Vries

    You absolutely can mix JSF RI and ADF Faces tags. This is very much supported! You can swap in <h:form> and <h:commandButton> and <h:inputText>. Our versions support some features that the JSF tags do not, as described in our release notes.
    Your point about using tags to produce all markup is a very cogent one. For some projects, absolute control over HTML will be a necessary requirement, so we do support that style of development. But we believe strongly that the future does not lie in constant handcoding of HTML, but instead in building more powerful, flexible, and reusable components and assembling those into pages. This was one of the themes of a talk I gave with two coworkers at this past JavaOne.
    -- Adam Winer (JSF EG member and ADF Faces lead)

  • Webcenter Spaces internal error page and session timeout page customization

    Hi
    On what basis is an internal error page shown in webcenter spaces? What triggers it?
    Is it possible to customize the internal error page that shows up on webcenter spaces?
    Or atleast redirect to a custom error page on any exception occured?
    Is there any other way to handle it?
    Also, how to customize the session timeout page? Is it possible?
    There seems to be a servlet being called for session timeout display i dont see any page being redirected to.
    Environment details: Webcenter Spaces 11.1.1.6
    Help needed on this asap please.
    Thanks

    Hi,
    I was experiencing the same problem with customizing the session timeout page. I found out that you can set a custom webcenter attribute in the webcenter-config.xml called "wcSessionTimeoutURL" which overrides the default servlet response and redirects the the specified path.
    In my example, I created a business role page, set it to be publically accessible, then used the Red Samurai MDS Cleaner taskflow to modify the custom attributes in webcenter-config.xml in the following way:
    <webcenter:custom-attributes>
    <attribute name="wcSessionTimeoutPeriod">
    <description/>
    <type>java.lang.String</type>
    <value>45</value>
    <visible/>
    </attribute>
    *<attribute name="wcSessionTimeoutURL">*
    *<description/>*
    *<type>java.lang.String</type>*
    *<value>/faces/oracle/webcenter/page/scopedMD/s8bba98ff_4cbb_40b8_beee_296c916a23ed/businessRolePages/Page1.jspx</value>*
    *<visible/>*
    *</attribute>*
    </webcenter:custom-attributes>
    Hope that helps!

  • PPR and session timeout cookie

    Scott,
    Is there anyway of getting the PPR functionality to update the session timeout cookie whenever a PPR request is made???
    Thanks..

    I am using your session timeout function from otn.
    I am using it to timeout after a set period of inactivity, every time the page is redrawn the cookie time is updated.
    I am calling this function from the 'Session Verify Function' field in the authentication scheme, and initially setting the cookie on login.
    I believe that the cookie only gets updated when the page is re-drawn and the Session Verify Function is run??
    On a PPR request only part of the page is refreshed, the page header remains unaffected, which means the user can be active on a page without refreshing the timeout value on the cookie?
    (Not a major problem, but would be nice to be able to update the cookie on a PPR request as well)
    Thanks..

  • HFM and Session Timeout

    Is there any way to change the time before you are automatically logged out of an HFM (or Workspace) web session due to inactivity?
    Thanks.
    Terri T.

    Hi,
    Try something like this:
    Workspace timeout settings:
    ● Application server session timeout— Time in minutes after which the application server
    times out a session if no requests are received for that session
    ❍ In \Workspace deployment\WEB-INF\web.xml:
    <session-config>
    <session-timeout>60 </session-timeout>
    </session-config>
    ❍ Default is 60 minutes
    Note:
    All Reporting and Analysis Web applications session timeouts should be greater than
    10 minutes.
    ● Workspace timeout—Time in minutes after which Workspace warns and logs out inactive
    users
    Workspace sends “keep alive” requests to all the application servers (Workspace, Financial
    Reporting, Web Analysis, and Oracle's Hyperion® Performance Scorecard – System 9). If
    there is no activity in Workspace per the session timeout setting, the user is warned that the
    session is about to end. If the user does not take action within 5 minutes, the user is logged
    out.
    ❍ In \conf\subcontext.properties of the Workspace Web application:
    KeepAliveInteral=10
    SessionTimeout=30
    22 Administration Tools and Tasks
    ❍ Default is 10 minutes for keep alive and 30 minutes for session timeout
    Regards,
    Marcin Kuzdra

  • BUG TableSelectMany ADF Faces JDEV 10.1.3 BC

    Hi,
    I have few issues / concern about TableSelectMany component.
    1) How can I unselect default first row selection when my page loads?
    This component always select first row as checked.
    2) I have Disabled property set to #{row.DocStts != 'Pending Assignment'}(Some value)
    when page renders I can see check box on particular row get Disables due to that property setting but if you click on select all disabled row get selected. How to avoid that?
    3) Or how to disable select all or select none link or stop rendering link on certain values in table. I do not want user to select row when I have disabled check box on certain values on table.
    I will appreciate your help. Looks like to me it is BUG in component
    Thank you,
    Jigar
    <af:table value="#{bindings.FAListView1.collectionModel}" var="row"
    rows="5"
    first="#{bindings.FAListView1.rangeStart}"
    emptyText="#{bindings.FAListView1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    selectionState="#{bindings.FAListView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FAListView1.collectionModel.makeCurrent}"
    binding="#{backing_staff_FAList.faListTable}"
    id="faListTable">
    <f:facet name="selection">
    <af:tableSelectMany binding="#{backing_staff_FAList.tableSelectMany1}"
    id="tableSelectMany1"
    disabled="#{row.DocStts != 'Pending Assignment'}">
    <af:commandButton text="#{res['dmsfa.faPacketList.assignButton']}"
    binding="#{backing_staff_FAList.assignButton}"
    id="assignButton"
    action="#{backing_staff_FAList.assignButton_action}"/>
    </af:tableSelectMany>
    </f:facet>
    </af:table>

    Thanks Frank for reply. this.getTable1().getSelectionState().clear(); clear out selected row but if you go next and previous again if you have navigation, First row always get selected as by default. Also as I mentioned I can not able to disable Select all and select none programmatically.
    I will appreciate your help.
    Regards,
    Jigar

  • Session Replication and Session Timeout -- Urgent

    WLS -4.5.1 SP 11
              OS - both NT and Sol
              HI All
              The session does not seems to timeout when running the Weblogic servers in
              clustered mode with in-memory session replication on.
              This problem seems to be there in version5.1 too , as per another post , it
              seems to be solved in WLS5.1 sp 8
              Could anyone pls confirm in which patch in WLS 4.5.1 is the problem
              addressed . I'm using patch 11 and am getting the problem.
              Thanks in advance..
              -Surya
              

    Try SP13 and if the problem persists, contact [email protected]
              -K
              Surya B Maithani wrote:
              > WLS -4.5.1 SP 11
              > OS - both NT and Sol
              >
              > HI All
              >
              > The session does not seems to timeout when running the Weblogic servers in
              > clustered mode with in-memory session replication on.
              > This problem seems to be there in version5.1 too , as per another post , it
              > seems to be solved in WLS5.1 sp 8
              >
              > Could anyone pls confirm in which patch in WLS 4.5.1 is the problem
              > addressed . I'm using patch 11 and am getting the problem.
              >
              > Thanks in advance..
              >
              > -Surya
              

  • Can ADF Faces Dialog Framework be used in a Bounded Task Flow ?

    Jdev. 11.1.1.4
    I have read chapter "19 Using Dialogs in Your Application" in the Jdev documentation.
    There explains that there are mainly two methods to open dialogs in ADF:
    The first (point 19.2) is calling a bounded task flow from a view activity (for example). This system can only open modal windows.
    The other is using the ADF Faces Dialog Framework and it seems to be more general. In point "19.3.1 How to Define a JSF Navigation Rule for Opening a Dialog" it is explainied the way to achieve this but the explanation begins with "In the adfc-config.xml file, create a page flow for".
    does this mean that I can not use this technology inside a Bounded task flow ?
    I have tried and it seems that it doesn't work.
    Currently we are using af:showpopupbehaviour to open popups, but this doesn't work with task flows and I don't like this.

    does this mean that I can not use this technology inside a Bounded task flow ?ADF Faces Dialog Framework can be used in both unbounded and bounded taskflows.
    I have tried and it seems that it doesn't work.The command commponent outcome must begin with "dialog:" and the command component tag must have useWindow="true", for example:
    <tt><af:commandButton action="dialog:toEdit" useWindow="true" .../></tt>
    Currently we are using af:showpopupbehaviour to open popups<af:showPopupBehaviour> can be used to open inline popups, but it has nothing to do with the Dialog Framework. Inline popups and the dialogs of the Dialog Framework are two different things.
    Dimitar
    Edited by: Dimitar Dimitrov on Jul 27, 2012 3:33 PM

  • ADF BC/ Faces - Session Timeouts in dialogs

    Hi,
    I was wondering if anyone has worked out how to handle session timeouts in dialogs? I have an application which has a shopping cart style dialog which is sized at 800x630 and launched from a main page. When the users session times-out they get the login screen within the dialog. How can I get the dialog to return to the main page and get the user to login there?
    Brenden

    Use the ADF Dialog in conjuncion with the af:poll component. The closing of the dialog is handled by a listener called a returnListner. See the blog entries below for complete details on how to use the dialog framework and its associated listeners.
    http://groundside.com/blog/DuncanMills.php?title=modal_dialogs_in_jsf_with_adf_faces&more=1&c=1&tb=1&pb=1
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/

  • Oracle ADF Faces Components, Early Access Release 8 is now available

    Oracle ADF Faces is a rich set of user interface components based on the new JavaServer Faces JSR (JSR-127). Oracle has been actively involved in this JSR since its beginning. The Oracle ADF Faces Components provide various user-interface components with built-in functionality - such as data tables, hierarchical tables, and color and date pickers - that can be customized and re-used in your application.
    ADF Faces also includes many of the framework features most needed by JSF developers today:
    * File upload support is integrated at a component level.
    * Client-side validation is automatically derived from Validators and Converters for an improved user experience.
    * A pageFlow scope makes it easier to pass values from one page to another.
    * A new hybrid state saving strategy gives developers the best of both client and server-side state saving.
    ADF Faces ensures a consistent look and feel for your application, allowing you to focus more on user interface interaction rather than look and feel compliance. The components support multi-language and translation implementation as well as accessibility features. ADF Faces Components use Partial Page Rendering (PPR) offering superior runtime interactivity. PPR allow the browser to just render a piece of a page instead of the entire page.
    The intention with this early access release is to give developers/architects an opportunity to evaluate JSF and Oracle's JSF component offering.
    Oracle ADF Faces Components can be used in any IDE that support JSF, including Oracle JDeveloper 10g.
    Oracle ADF Faces Components, EA8

    Jonas,
    It works if I include the following:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The source is now:
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA8" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <f:view>
    <af:outputText value="hello ADF Faces!"/>
    </f:view>
    </body>
    </html>
    Did I feel out something in my library entry?
    Thanks.

  • ADF without using ADF-Faces

    I'm starting a new project and I want to combine the use of ADF without using adf-faces in other words I want to connect to the Oracle data base through ADF while building my own beans.

    Well I'm still having problems with "ADF without using ADF-Faces" so I went back and found documentation:
    Oracle® Application Development Framework
    Developer’s Guide
    10g Release 3 (10.1.3)
    B25386-01
    However I came to point where I was confused with the TopLink documentation on 3.7 Querying Objects where it said:
    You cannot configure the sort criteria of a TopLink query from Oracle JDeveloper. You
    must write a Java method, using descriptor amendment method. See Section 3.3.3.2,
    "Using Amendment Methods" for more information.
    I find this hard to fathom would you not want to sort the dataset on a JSF table?
    The link takes you to a statement that has nothing to do with Sorting.
    Jim

Maybe you are looking for

  • Ordering new Mac Pro. Would like some advise please.

    Okay, here we go. I am a freelancer who shoots in 1080i and 720p using a JVC 700 U camera with really good glass. in a small market. So bringing the media in is a piece of cake. I do not see me going to 2K or 4k anytime soon. I produce a weekly hour

  • SpryAccordionDesignTime.js

    I just ran the updater and now when I open a page w/ a spry tabbed panel, I get the error: The following translators were not loaded due to errors: The following JavaScript file "Macintosh HD:Applications:Adobe Dreamweaver CS3:Configuration: Shared:S

  • When I delete desktop icons, they don't auto arrange?

    Hi everyone. I purchased a new macbook pro about a month and a half ago and am running snow leopard on it. When I delete icons on my desktop, the gap where the icon used to be is still there. I would like my desktop to automatically fill that in with

  • ALBPM EE 5.7 - Run More Than One Engine Simultaneously

    Hi, I have created two engines (engine1 and engine2). Both with different databases and same RDBMS (Sql Server). After running the first engine(engine1), when I try to run second engine (engine2), it shows an exception. I need to run both of the engi

  • Problem starting j2ee RI

    I've got a problem starting j2ee RI. I've got a NumberFormatException Does anyone has an idee? j2ee -verbose java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at ja