Jdev 10.1.3.3 + ADF popup window

Hello,
We are using the adf popup window to show some of the application data. But when session times out we are facing the issue in redirecting the page. Currently when session times out popup window is getting redirected to login page,but parent window is not closing.We want to close the popup window,parent window and redirect to login page.Any idea or thoughts around how to handle session time out in case of popup windows??
Thanks
Edited by: user645222 on Nov 10, 2009 9:48 AM

Hi,
its a while ago that I looked into this and the only thing that worked for me is to use a JavaScript timer you set to fire before the session expires to close the window.
Frank

Similar Messages

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • Af:showPopupBehavior aligns popup window at top-left window JDev 11.1.1.0.0

    Hi,
    I am using af:showPopupBehavior to show a popup. I have specified alignid but popup is not align to my component. It is shown at left corner at the top of my browser. I also retried removing alignid and take default setting. No luck.
    Here is my code:
    <af:panelGroupLayout clientComponent="true" *{color:#ff0000}id="pg1"{color}* layout="scroll" inlineStyle="max-height:#{pageFlowScope.maxHeight == null || pageFlowScope.maxHeight == '' ? '250': '100'}px">
    <af:popup id="detailedMessage" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher">
    <af:outputText value="#{AMFMessagingServiceInstance.currentMessageOwnerId}" escape="false"/>
    <af:setPropertyListener from="#{source.attributes.detailedText}" to="#{pageFlowScope.detailedtext}" type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.detailedText}"
    to="#{AMFMessagingServiceInstance.currentMessageOwnerId}" type="popupFetch"/>
    </af:popup>
    <af:commandButton clientComponent="true" id="alginMe" visible="false" text="test"/>
    <af:forEach items="#{pageFlowScope.messageListener.messages}" var="message" varStatus="msgVS">
    <af:panelGroupLayout clientComponent="true" layout="horizontal" valign="top" id="testing2">
    <f:facet name="separator">
    <af:spacer width="20" height="30"/>
    </f:facet>
    <af:panelGroupLayout id="pg2" clientComponent="true" layout="vertical" inlineStyle="padding:10%;">
    <af:image id="image1" shortDesc="#{message.text}" source="#{message.imageFileName}" rendered="#{message.imageFileName != ''}" clientComponent="true">
    <af:clientAttribute name="detailedText" value="#{message.detailedText}"/>
    <af:showPopupBehavior popupId="detailedMessage" triggerType="click"
    {color:#ff0000}*alignId="pg1"*{color}/>
    </af:image>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:forEach>
    </af:panelGroupLayout>
    I am using this code fragment as a region. JDev version is 11.1.1.0.0. I also noticed if I change popup content deliver type to "lazy", I kind of got desired alignment, but I can't cache my popup window content as it is changing.
    Appreciate any help.
    Thanks,
    Feng

    Hi,
    I think the problem comes from using the af:forEach element, which only stamps the components. Components that are stamped don't have a client object and just cannot be used for alignment. I think that using af:iterator is the way to do it so instances of the components are created.
    Frank
    Edited by: Frank Nimphius on Feb 12, 2009 7:16 AM

  • JDeveloper popup window using ADF Faces

    Has anyone actually managed to get a popup window working properly using ADF Faces? I have slavishly copied examples from the Developer's Guide, but nothing works - I never get a popup window appearing.

    I'm back again and unfortunately I haven't got this to work. I've scaled down my jsp to just include enough to test the pop-up functionality.
    First here's the code from my jsp page(index.jsp):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <!-- import tag libraries -->
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af" %>
    <f:view>
    <afh:html>
    <afh:head title="JSF Test Pop-up Page">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <meta name="MSSmartTagsPreventParsing" content="true"/>
    </afh:head>
    <afh:body>
    <af:commandLink text="Test Pop-up" action="dialog:test" useWindow="true"/>
    </afh:body>
    </afh:html>
    </f:view>
    and here's a copy of faces-config.xml:
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <!-- Navigation Rules -->
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>dialog:test</from-outcome>
    <to-view-id>/results.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    According to the docs on ADF Dialog Framework this is all I need to have in place in order for it to work. What am I missing?
    Thanks again to all replies.

  • ADF Gantt Project: Modification of 'properties' popup window

    Dear all,
    Is there a possibility to access and modifiy the properties popup windows as used for instance in the Oracle ADF faces demo "Tag Guide > projectGantt Demo > 'click on task' > 'left mouse click' > 'Properties'".
    Thank you in advance!
    Best regards,
    Tom

    Thank you for the fast answer, John.
    For my Project Gantt Application, we need more variables as avaible in the present 'oracle model'. The minimum requirement is the comparability of to a MS Project.
    We would like to modify the additional variables in the mentioned properties popup. Do you see a possibility to achieve this goal?
    Best regards,
    Tom

  • How to refresh Adf  table from Adf popup

    Hi all,
    i have and adf query panel with table. On this table for each record, there is a button to perform some operations. When i click this button i am launching an adf popup. Inside this popup i have used a adf dialog of type yes/no. i am using this as a confirmation. (ex- Are you sure you want to change (ex- deactivate) this record?) If yes is clicked i change only one field. Suppose the record belongs to a client. On click of yes, i change the status to some value. ex- deactivate. so with the dialog's button click, i change the table data. but it is not reflected unless i made a query. i want to automatically refresh this table on click of dialog button's yes. I hope i made my self clear. Can this be done with Jdev. Im using Jdev 11.1.1.0.1. Pls help me with this.
    Thanks in advance,
    Nad

    Hi Maxi, Timo, i tried the solutions by both of you. Thanks alot for replying. But i get an error. This is what i did. for Deactivate btn in the table, i have added the below return listerner code.
    public void onReturnFromDialog(ReturnEvent returnEvent) {
    if (returnEvent.getReturnValue() != null) {
    refreshCurrentPage();
    protected void refreshCurrentPage() {
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    but i noticed that both these methods are not invoked. So i added the below dialoglistener code to the af:dialog that is inside my popup. This popup is shown when the deactivate btn is clicked.
    public void DialogListenAction(DialogEvent dialogEvent) {
    if(dialogEvent.getOutcome().toString().equals("yes"))
    DCIteratorBinding iter = ADFUtils.getIterator("MembersVO3");
    String des = (String) iter.getCurrentRow().getAttribute("MemberCode");
    service.deactivateMember(des); //This is where i update the record and set the attribute value to des
    System.out.println("suspect1");
    RequestContext.getCurrentInstance().returnFromDialog(des,null);
    //AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //afContext.getCurrentInstance().returnFromDialog(des, null);
    System.out.println("suspect2");
    //ifCancel Do nothing
    when i add 'RequestContext.getCurrentInstance().returnFromDialog(des,null);'
    OR
    'AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getCurrentInstance().returnFromDialog(des, null);'
    i get the error - java.lang.IllegalStateException: popView(): No view has been pushed.
    i cant figure out what is the wrong here. Can some one pls suggest how to resolve this?
    Thanks alot.

  • Taskflow context not maintained with ADF popups

    JDev build: JDEVADF_11.1.1.4.0_GENERIC_101212.1926.5912
    A coworker also reproduced this using JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    This is a simple WebCenter custom app created using JDev. I'm seeing exceptions when canceling a popup that contains a taskflow (the DocViewer taskflow). The popup was launched from another taskflow called Content Presenter. Upon canceling the popup (i.e., clicking the 'x' in the upper right corner), I see this error message in a javascript alert:
    "Target Unreachable, 'presenterNavigationBean' returned null
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #1"
    In the server console, I see these exceptions (abbreviated to keep this post a bit smaller, but I can provide the entire stack trace if necessary):
    java.lang.IllegalStateException: The expression "#{bindings.rbxzy5vg6jr1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "oc_4478173184region1") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression "#{bindings.rbxzy5vg6jr1}" evaluates to "null".
    If it helps, the expression "#{bindings}" evaluates to "portal_cpPageDef". Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:450)
         at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:682)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:498)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:692)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:632)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:300)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    javax.el.PropertyNotFoundException: Target Unreachable, 'presenterNavigationBean' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.setValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:656)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeBindings(LifecycleImpl.java:727)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.access$000(LifecycleImpl.java:71)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$1.call(LifecycleImpl.java:697)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$1.call(LifecycleImpl.java:693)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:503)
    (basically the same thing as above repeats a few times) presenterNavigationBean is the bean for the Content Presenter taskflow which launched the popup.
    The steps I'm taking to see this problem are:
    1. Launch JDev and create a WebCenter app, accepting all defaults. This requires the WebCenter extension, i.e., oracle.webcenter.framework_bundle.zip
    2. Create a content repository connection to an Oracle Content Repository
    3. Create a jspx in Web Content/oracle/webcenter/portalapp/pages using the global page template (select that checkbox). I typically call it cp.jspx, thus the references to "portal_cpPageDef" in the exceptions above.
    4. Open the jspx in source view, place the cursor after the pageTemplate tag, and add a "page customizable" component from the Oracle Composer group in the Component Palette. Save the page.
    5. Open Web Content/oracle/webcenter/portalapp/pagehierarchy/pages.xml and drag your jspx to the root of the hierarchy. Save all pages.
    6. Run the Web Content/index.html page.
    7. Login using weblogic/weblogic1
    8. Click on the page you created in the toolbar
    9. Click "shift + ctrl + E" to put the page in edit mode.
    10. click the "Add Content" button (it launches a popup)
    11. In the popup, click on "Content Management"
    12. Click on "Add" next to the Content Presenter taskflow and close the popup
    13. Now select an HTML document from the content repository by using the Content Presenter wizard (click on the first wrench icon in the chrome). If you don't have one, you'll have to add it to the repository.
    14. In the Content Presenter wizard, select the "Preview" page
    15. click the "Open in Document Viewer" button. This launches the DocViewer taskflow in an ADF popup.
    16. Click the cancel button in the upper right corner.
    17. This is when the javascript alert will show the errors mentioned above. The server console in JDev will show the stack traces.
    Please let me know if this is a configuration issue on my end or a bug within ADF. I'll monitor this thread closely today to provide any information that could be helpful asap. Thank you.

    It's the bean that the Content Presenter taskflow uses. All I did was create a page using the global page template and added the Page Customizable component to it, then customized the page to have an instance of the Content Presenter taskflow. I can use Content Presenter normally until I attempt to edit an HTML doc (which launches the DocViewer taskflow in an ADF popup). At that point I start seeing binding errors, like the taskflow context is lost.

  • How to validate text fields in popup window

    Hi All,
    I need showing empty string validation  as tool tip for the text fields (RichInputText) on popup window when clicking submit button. kindly advice on this.

    Hi
    Below link me help u in implementing validation messages
    http://andrejusb.blogspot.in/2008/04/adf-faces-rich-client-complex.html
    Thanks
    Nitesh

  • How to send data from popup window to parent window

    Hi,
    I need help some like this
    I have parent window ,in that i am clicking + button one dynamic row should add and one popup window has to diplay .Popup window contain 3 comboboxes and 5 text boxes. Once i am clicking OK button in popup window those values has to display at specified row in parent window
    Kindly help me ,
    Thanks
    jyothi

    See this
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfdrilldown/index.html

  • Close ADF Popup Dialog with html button in Inline Frame

    hi,
    I'm using jdev 11.1.1.2,
    I have a adf popup dialog which contains an Inline Frame(source is a jsp file).I want to close the dialog with a html submit button in the frame page. when the submit button is clicked, auto close the dialog.
    can anyone help in this.
    Thanks

    Try to close the popup from Javascript using a sciptlet similar to the following one:
    var popup = AdfPage.PAGE.findComponent('<yourPopupClientId>');
    if (popup.isPopupVisible()) {
      popup.hide();
    }where <tt><yourPopupClientId></tt> should be replaced with the popup's client ID. The client ID is composed of the popup's ID from the <af:popup> tag preceded with IDs of the eventual parent naming containers where the popup has been declared.
    For example, if the tag is <tt><af:popup id="myPopup"></tt>, then the clientId might be:
    <tt>  myPopup
      container1:myPopup
      container1:container2:myPopup</tt>
    ... and so on, depending on where you have defined the popup in your JSF page (i.e. within which naming containers), you should determine it first.

  • How to remove shadow of popup window in chrome broswer?

    Hi,
    I used JDev: 11.1.1.4.0, chrome: Version 26.0.1410.64
    In our application, when open a popup window, there is shadow with popup window, and only appears in chrome browser, not in IE or Firefox broswer, just like the screen snapshot.
    https://bugsftp.us.oracle.com/bug/filedownloadservlet?bug=16815411&FileName=shadow_in_chrome.PNG
    Any advice for this issue?
    thanks,
    zeroxin

    Hi Venkat,
       Jus set the size (height and width ) in ROOTUIELEMENT of  the popup view. This will resolve ur issue.
    Regards
    Sathish

  • Table never gets populated inside popup window on customer's site

    I'm working on application in ADF (ADF BC, ADF Faces) with JDeveloper 11.1.1.4 (application deployed on customer's site in Weblogic Server 10.3.6)
    and in one page I'm having a button behind which is a code to execute a query against a table whose data is going to be shown in popup window.
    Query limits the number of records to be shown to 100 (in query: rownum <= 100).
    In my development environment this works fine, but there is a problem on customer's site.
    For the query to execute it takes about 20 seconds at the site of customer. After that in backing bean there is a code to show popup.
    In the page - popup starts showing (it means that query ended) but never fetching data in the table (all the time there is a message - "Fetching data" like framework is retrieving it but nothing happens).
    I have tested a query in SQL*plus - it returns data.
    I couldn't find out what is the reason for such behaviour.
    Do you have any suggestions what to try?
    Thanks,
    Nebojsa

    I've found the reason for not populating table in popup.
    Although there is a limitation to the number of rows displayed in table in the form of additional where clause: "rownum <=n" this part of where clause is added to the VO in overridden method: executeQueryForCollection.
    Before executing this method framework is executing: getEstimatedRowCount which when executed for the first time through method getQueryHitCount executes a query against the database (select count(1) from... without my rowum <=n which is added to the query afterwards in above mentioned method executeQueryForCollection).
    My question is: if I don't want to add rownum <= n at design-time, where it would be the best place to add it to the query so to avoid above described situation and to have that rownum <= n in place for the count query as well?
    Nebojsa

  • Popup window without using a command button or command link in Adf10g

    Hi,
    I need to show a table in a popup window on clicking in a component in the jspx page. The component can't be a command button or a command link, so i can't use 'useWindow' or 'useDialog'. What can be done in such a case. I am using Jdev version 10.1.3.
    I doubt if <af:dialog> or <af:popup> components are available in ADF10g.

    Hi,
    There's a way, but frakly I would try to change the functional side instead of trying it. Anyhow, if you want to do it, you'll have to use a combination of autoSubmit/onclick along with DialogService.launchDialog (accessible through AdfFacesContext), but that's a very obscure part of the framework.
    Regards,
    ~ Simon

  • af:showPrintablePageBehavior problem against af:treetable on Popup window

    I just used <af:showPrintablePageBehavior> for <af:treetable>, but got a wrong printable page. I faced this problem on new popup window, which is a browser popup window rather than adf faces inline popup.
    After treating <af:treetable> using <af:showPrintablePageBehavior> in popup window, I just found all cells in the table was gone on the printable page while the table header was preserved. It seems like this:
    Item | Col1 | Col2 | Col3 | Col4 | Col5 |
    Rows 1-0 of 4
    Such effect is kinda like the situation when u configure *<output-mode>printable</output-mode> in trinidad-config.xml*, which simply truncates the treetable.
    Such effect is gone when you are not using popup window. In other words, you won't face this problem and will get a normal treetable with full data when using tab or browser window.
    But currently the requirement needs that this is be done in popup window.
    Anyone give me a hint on solving this?

    I am able to get the details by designing the screen in jsp page instead of jspx page.

  • Need to create a empty form on popup window

    Hi i have 3 master and details tables each table have create button when i click on create new popup window should come with empty data.
    i achived with the one table using popupFetchListener method in the backing bean as
    public void createHistoryRecord(PopupFetchEvent popupFetchEvent) {
    // Add event code here...
    System.out.println("Action event for history");
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert");
    opb.execute();
    // am.insertData();
    }catch(Exception e){
    e.printStackTrace();
    but when i tried the same code with 2nd table create button then the 1st table row is adding and i am getting error like FirstActivationDate and all are null these fileds are mandatory fields in 1st table.
    can any one help me in this.

    Sireesha thanks for your reply,
    i have taken 2nd Vo iterator also like
    popup code:
    <af:popup binding="#{backingBeanScope.backing_app_AccountsPage.popup11}"
    id="popup11" popupFetchListener="#{backingBeanScope.backing_app_AccountsPage.createAddressRow}">
    Bean method code:
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    System.out.println("Binding name is: "+bc.getName());
    oracle.binding.OperationBinding opb = bc.getOperationBinding("CreateInsert1");//Here i have taken the page definition id
    opb.execute();
    }catch(Exception e){
    e.printStackTrace();
    Page definition:
    <action IterBinding="CmSubscriberAddressesViewIterator" id="CreateInsert1"
    RequiresUpdateModel="true" Action="createInsertRow"/>
    Still i am getting the same error.
    Edited by: user5802014 on Sep 4, 2009 3:49 PM

Maybe you are looking for

  • Progress bar in forms-10g???

    hi there....can I use a Progress bar in forms-10g??? Previously I've been using an OCX for progress bar. But as forms-10g dont support ocx so is there any replacement in form of java bean, pjc or anything else??? 2ndly can I open my browser window ru

  • Problem with a function of Dreamweaver Cs4

    Hi. Excuse me for my bad Inglish, but i am italian. I have a problem with Dreamweaver CS4. Before I have used the last version, CS3 and there were a function call image viewer (Insert > Multimedia objetcts > Image Viewer). In this new version, this f

  • Sorting and filtering by select-multi person or group field in the list in SharePoint 2013

    Hi everybody, In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow mult

  • And now a Prop List...

    Ok. I finally have the script of the play ready to go, but I can't figure out how to generate a list of Props and Sound effects that appear througout the document. In WordPerfect this is quite an easy process. But I can't generate the list in WP beca

  • USB thumb drive does full backup every time its plugged in

    4GB Corsair USB thumb drive. 1 Partition, MBR, HFS+ I have 2 computers. PowerMac G5 and Macbook Pro. Each have there own Time Machine drives. Each time I plug my USB drive into one of these computers, syslog has this: backupd[7080]: Starting standard