Dynamic Region in Popup - clientListener problem?

Hello,
I'm working in Jdeveloper 11.1.1.2, following the popup/region pattern found at: http://www.oracle.com/technology/products/adf/patterns/11/popupregionpattern.pdf to have a dynamic region in a popup. I already have a working implementation on one of my pages, but the exact same implementation on another page is giving me issues. Whenever I add an af:clientListener component to my popup, the table in the same panelCollection stops rendering its rows. The column headers display, but there's no text of any type in the rows. If I delete the af:clientListener, my page works perfectly.
Here's my popup code thus far:
<af:popup id="awdPU" contentDelivery="lazyUncached"
launcherVar="source" eventContext="launcher">
<af:setPropertyListener from="#{source.attributes.saId}"
to="#{pageFlowScope.currentSaId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.saId}"
to="#{pageFlowScope.currentSchlrId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.appId}"
to="#{pageFlowScope.currentAppId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.aidYear}"
to="#{pageFlowScope.currentAidYearId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.theAction}"
to="#{pageFlowScope.currentAction}"
type="popupFetch"/>
<af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.orgId}"
to="#{pageFlowScope.currentOrgId}"
type="popupFetch"/>
<af:panelWindow id="pw1" title="Awarding">
<af:region value="#{bindings.dynamicRegion1.regionModel}"
id="dynam1"
regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"/>
</af:panelWindow>
<af:serverListener type="serverPopupClosed"
method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
<af:clientListener method="popupClosedListener"
type="popupClosed"/>
</af:popup>
and here is my working, completed dynamic region + popup code:
<af:popup id="awdPU" contentDelivery="lazyUncached" launcherVar="source"
eventContext="launcher">
<af:panelWindow id="window" title="Awarding" modal="true" closeIconVisible="false">
<af:region value="#{bindings.dynamicRegion1.regionModel}" id="dynam1"
regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"
inlineStyle="background-color:transparent;"/>
</af:panelWindow>
<af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.saId}" to="#{pageFlowScope.currentSaId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.appId}" to="#{pageFlowScope.currentAppId}"
type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.aidYear}"
to="#{pageFlowScope.currentAidYear}" type="popupFetch"/>
<af:setPropertyListener from="#{source.attributes.theAction}"
to="#{pageFlowScope.currentAction}" type="popupFetch"/>
<af:clientListener method="popupClosedListener" type="popupClosed"/>
<af:serverListener type="serverPopupClosed"
method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
<af:clientAttribute name="action" value="makeAward"/>
<af:clientListener method="adjustPopupSize" type="popupOpening"/>
</af:popup>
Does anyone know of any reason a client listener would have this kind of impact on my page? I've tried other types/methods and it just seems like if an af:clientListener is there, it won't work.
Thanks!

Hi,
I came across this type of problem. what the javascript method u r calling it may contain some errors or if the clientListner not able to find the method which u r calling in the jspx file that will behave like that only.
keep one alert begining of the script method(popupClosedListener) and check it whether it is calling or not. Better related serverListner should be after the ClientListner.
Reg,
Brahma...

Similar Messages

  • Dynamic region table with binding problem

    Hi. I'm using jdev 11.1.1.3 and ADF full stack.
    My app uses single page approach with ADF libraries and a dynamic region to show content. Main page includes a menu bar which is created on session startup and is used to load task flows from libraries.
    I have a class to provide some table functionality like CRUD, multi-row delete, etc and I need to reuse with every table included in libraries.
    To do this, in main web app I have a managed bean to hold table binding and to provide this common functions to all fragments if needed.
    I think it must be in request scope as fragment changes.
    Here's the problem: when I navigate to a fragment which contains a table with binding, first time goes well,
    but next time table, when fragment changes,new table displays without header or without data.
    If I go to another fragment without binding and return to a fragment with problem, it displays well. With fragments without table binding, it works OK.
    I've tried changing scope of this 'general' managed bean, but same thing. If I put a bean for each fragment, it works OK.
    So, how can I 'share' this managed bean through every table? Any suggestions? is it possible?
    Please, help me ....
    Thanks,
    DEMR.

    I am seeing a similar problem in my app. I have a main menu that drives a dynamic region. If the task flow that gets displayed in the dynamic region also contains a dynamic region, when the inner dynamic region is refreshed to point to a second task flow, the page does not render correctly. The errors we have seen include data in tables not being displayed in some cases, and PPR errors in other cases. In both cases, if the inner dynamic region is replaced (by a single bounded task flow with navigation logic in a template, for example) the errors go away. There appears to be issues involved with including a dynamic region within a dynamic region.
    Have you made any progress on solving your issue?

  • Open popup in dynamic region once region changes flows

    I need to open a popup in a flow if boolean is set to true in the pageFlowScope bean of the dynamic flow bean used in a dynamic region. The parent page/flow is configured in the adfc-config.xml and is controlled by a session bean.
    So the scenario is the main page has links to several different pages, each of which has a mean of editing a widget. The Widget edit page has a Tree object that lists the items by user defined categories. Double the tree widget opens a popup with the editor section for that particular widget. These widgets rely on each other and if there is a problem in a contained widget, then I provide a clickable link to go to that object. I'm able to get the main page to change regions to the correct widget flow.
    Once I get to the new widget control flow, the tree is displayed as usual and in the pageFlowScope bean I've set a boolean and populated the widget definition for display. Unfortuately, I have found a way to open the popup.
    I've tried a phase listener calling a method in the parent page. However, I'm not able to find the pageFlowScope bean by any means. I've set the pageFlowScope bean into the session and get it in the phaseListener method, but all attempts to show the popup seem to go into the great void. I've even added a button with the actionListener to pageFlowScope.myBean.showPopup, but can trigger the action event for that either.
    Using: JDeveloper 11g. Not using BC. Any help would be greatly appreciated.

    Thank you. That worked.
    I have one more question. How can I change the task flow in the dynamicRegion from another taskFlow. For example: I have taskFlow1 loaded into the dynamic region and I want on a button click from taskFlow1 to load taskFlow2 into the dynamicRegion. Is it possible?

  • Implement commit,rollback,cancel popup when swapping task in dynamic region

    Hello,
    I have been trying to implement this functionality when I swap task flows in a dynamic region....
    A popup/dialog to be displayed with the following options (assuming there are changes to be saved on the task flow being swapped out)
    Commit - save the changes on the the outgoing task flow and continue to bring in the new task flow
    Rollback - cancel the changes on the the outgoing task flow and continue to bring in the new task flow
    Cancel - remain on the outgoing task flow and do not bring in the new task flow
    If i click on a button within the outgoing task flow, it is possible to determine the condition of the view object, determine if there are pending changes and display such a dialog, the problem is if that the navigation within the dynamic region is being performed from outside the region, we are advised against using task flow return activities when using bounded task flows within regions ( section 17.1.8 of fusion dev guide for 11.1.1.1.0 ) so the only thing i can think of is building a finalizer routine for the task flow. While this does get executed when the task flow is swapped out... how can i display the dialog from there, and stop execution of the finalizer and return to the original task flow if ultimately i want to cancel.
    Any ideas? other solutions?
    Thanks.

    Thanks for the reply Richard,
    I think this will probably be an important feature for anyone using the single page model, unless that model is not being encouraged/being discouraged. Unfortunately I'm not aware of the "How-to" you mentioned, but I would dearly LOVE to be. The project I am working on is in a relatively early stage, and this would be the time to put things in extension libraries, templates and the like. Especially if there is no official line on when a formal fix might be available, the plans not being firm and all...
    But thanks for the reply none the less... I'd still appreciate any further information if anyone has some form of solution.
    Cheers

  • Problem reentering task flow in dynamic region

    Hi All,
    I have problem with reentering task flow in dynamic region.
    JDeveloper/ADF 11.1.2.3.0
    Use Case:
    Application contains bussines modules(implemented as bounded task flows) displayed in dynamic region.
    In some modules, default activity is Method Call activity which performs some validations(input parameters, state of records in db, etc.)
    and if some conditions are not satisfied, shows message to the user and exits module (navigates to Task Flow Return activity).
    Problem:
    If user tries to start the same module again, nothing happens(message is not shown).
    If user choose some other module and after that start first module, message is shown(so I suppose this means that task flow was correctly exited first time but dynamic region state was not refreshed).
    Current implementation info:
    Dynamic region has attached regionNavigationListener which resets taskFlowId variable in dynamic region bean if regionNavigationEvent.getNewViewId() == null but this listener is not called if Method Call activity directly navigates to Task Flow Return activity.
    (if user navigates to Task Flow Return activity from button on some page, this works as expected)
    Also, I tried to reset taskFlowId variable from task flow finalizer and to programatically refresh region binding, but this still doesn't work.
    So, am I missing some point about refreshing dynamic region or this is bug in ADF?
    Thanks,
    Dario

    I don't have any popup.
    There is only page which contains dynamic region.
    This dynamic region can be empty or can contain one of business modules(bounded task flows) which are invoked from menu.
    In some cases business module must exit(by invoking task flow return activity) immediately after invocation(because some business validations fail).
    In this case, module will show message to the user.
    Problem is that if user call the same module again, nothing happens(message is not shown) because regionNavigationListener(which only purpose is to reset taskFlowId variable when business module exits) is not triggered when Method Call activity(which is default activity in BTF) navigates to Task Flow Return activity.
    Also, I tried to use Router activity instead Method Call, but problem still exists(regionNavigationListener is not triggered).
    Obviously, regionNavigationListener is called only if navigating from page(or fragment) and this is probably a bug in ADF so I opened SR.
    Edited by: kdario on Oct 27, 2012 5:04 AM

  • Custom event in popup w/ dynamic region does not reach its server listener

    Here's the situation:
    I have a fragment taskflow. Inside this taskflow's fragment, I am firing 2 custom client event that is being listened to by 2 server listeners. All of these are working fine when I use the taskflow as a region on a page. But when I use it as a dynamic region inside a popup, only the first event gets processed, the second one(and all subsequent ones) don't reach their respective server listeners.
    Additional detail, all 2 custom events are on the same component(an inputText).
    Is this an ADF bug or am I doing something wrong?
    Edited by: Hyangelo on Aug 3, 2011 5:12 AM

    bump

  • ADF Dynamic region in a popup does not load

    Hi Experts,
    JDEV version used 11.1.1.5
    I have a page which has a table and each row has a command link on one of the columns.
    When I click on the command link an action listener is invoked which decides the DYNAMIC TF that is to be loaded in a pop up .
    The pop up has a dynamic adf region in it.
    Based on the record clicked (using command link) task flow is loaded in the dynamic region of the the Popup .
    But, when i click the same link for the second time or a different record the popup is displayed as blank , The taskflow in the dynamic region is not loaded at all.(getDynamicTaskFlowId is invoked and is also returing the correct TF to be loaded)
    First time it works as expected  , but its not happening from the second time.
    I have used conditional activation , but later due to the above issue I have tried to put an expression #{true} for the active property to test if it works. It didn't.
    Please note that first time there is no issue.It does not work from the second click on same record or any other record.
    Any other suggestions to fix the above issue  are much appreciated.
    Thanks,
    Vikranth

    Hi Frank,
    I have followed the same approach. However in my case its a dynamic af:region which is causing the issue.
    Any other pointers is much apprecitaed.
    Thanks,
    Vikranth

  • Problem in passing parameters between flow task in a dynamic region

    Hi,
    I have a problem with the passing of parameters between task flow when it is executed within a dynamic region. To implement this, I followed the Baranovskis Andrejus Blog "JDeveloper 11g and ADF Task Flow Parameters" and everything works perfect as the task flow are not invoked from a dynamic region. But if the same task flow are converted to fragment of pages and executed in a dynamic region, the filter in the task flow that is called does not work, it does not return any records.
    Any idea that I may be missing to make this work well?.
    Thanks in advance.

    Hi Frank.
    My case is the first, ie in a single dynamic region, a task flow call another passing parameters to filter data to display in the second, using a task flow call activitie. As I said in the message above, everything works well as both task flow to not become unbounded task flow with fragmet page.
    Any ideas?
    Thanks

  • Problem with identifying the Train in Dynamic Region

    Hi,
    I have a two task flows(firstflow,secondflow) and they both have its own individual trains and they are all page fragments. Then I have my main page where in I created a dynamic region based on secondflow. Then in the same page I have dynamic region links for firstflow and secondflow. When I run the application I first see the second flow and its train. Now when I click the firstflow link. its corresponding page is showing up then when I click the train it then goes to the secondflow and its train, I cannot navigte within the firstflow and its train. Please let me know any solution to this. Thanks.

    Hi Chetan,
    Thanks. It did worked. When I first faced this problem and when I created the dynamic region I was propmpted to create the bean and I tried creating it wieth scope = session but then I could not run the application. So I kept it as request. But now when it is changed from the property inspector it is running. I need to try the first method again to see it that happens. Thanks for the solution.

  • PPR problem with dynamic regions

    Hello,
    I have an application which starts by displaying a two buttons, each of which is supposed to display a particular bounded task flow in a dynamic region. The first task flow has a .jsff which has a table that displays records in a richtable... no problem there. The second task flow displays records (from a different table in the database) in a PanelFormLayout using inputtext's.
    Now the problem.
    When the first task flow is set to display by default when the application is run, the table works as it should. I click the button to switch the dynamic region to the second task flow and that is fine, but any navigation button I click gives me the following error...
    SEVERE: Server Exception during PPR, #4
    javax.el.PropertyNotFoundException: Target Unreachable, 'Col2Id' returned null
    Now, if I setup this second task flow to display by default, it works as it should.
    The actionlistener I use to switch the tasks in the dynamic region is as follows
      public void testListener1(ActionEvent actionEvent) {
        String varTask;
        //the two buttons have btn1 and btn2 as the id's, so this returns '1' or '2' respectively to generate the correct taskFlowId below
        varTask = actionEvent.getComponent().getId().substring(3);
        // this builds the task flow id based on the value of the variable determined above
        taskFlowId = "/WEB-INF/tasks/task-flow-" + varTask + ".xml#task-flow-" + varTask;
    }and it does switch the task flow to the correct one.
    The .jsff for the second task flow is as follows
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelBox text="PanelBox1">
        <f:facet name="toolbar"/>
        <af:panelFormLayout>
          <af:inputText value="#{bindings.Col2Id.inputValue}"
                        label="#{bindings.Col2Id.hints.label}"
                        required="#{bindings.Col2Id.hints.mandatory}"
                        columns="#{bindings.Col2Id.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Id.hints.precision}"
                        shortDesc="#{bindings.Col2Id.hints.tooltip}"
                        id="textCol2Id">
            <f:validator binding="#{bindings.Col2Id.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Col2Desc.inputValue}"
                        label="#{bindings.Col2Desc.hints.label}"
                        required="#{bindings.Col2Desc.hints.mandatory}"
                        columns="#{bindings.Col2Desc.hints.displayWidth}"
                        maximumLength="#{bindings.Col2Desc.hints.precision}"
                        shortDesc="#{bindings.Col2Desc.hints.tooltip}"
                        id="textCol2Desc">
            <f:validator binding="#{bindings.Col2Desc.validator}"/>
          </af:inputText>
          <f:facet name="footer">
            <af:panelGroupLayout layout="vertical">
              <af:panelGroupLayout layout="horizontal">
                <af:commandButton actionListener="#{bindings.First.execute}"
                                  text="First" disabled="#{!bindings.First.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Previous.execute}"
                                  text="Previous"
                                  disabled="#{!bindings.Previous.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Next.execute}"
                                  text="Next" disabled="#{!bindings.Next.enabled}"
                                  partialSubmit="true"/>
                <af:commandButton actionListener="#{bindings.Last.execute}"
                                  text="Last" disabled="#{!bindings.Last.enabled}"
                                  partialSubmit="true"/>
              </af:panelGroupLayout>
              <af:commandButton text="Submit"/>
            </af:panelGroupLayout>
          </f:facet>
        </af:panelFormLayout>
      </af:panelBox>
    </jsp:root>the adfc_config.xml is as follows
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="start">
        <page>/start.jspx</page>
      </view>
      <managed-bean>
        <managed-bean-name>backing_start</managed-bean-name>
        <managed-bean-class>programs.view.backing.Start</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1start.jspx-->
      </managed-bean>
    </adfc-config>Does anyone have an idea what gets missing or confused at the PPR level when I switch task flows in a dynamic region in this manner, and how can it be corrected.
    Thanks

    Hi Frank,
    When I try changing the managed bean scope from backingbean to pageflow (I also had to change the binding in the PageDef.xml file as well), it displays a blank screen when starting and the server log file has the following error message.
    <Apr 27, 2009 8:28:35 AM CDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@164d2b3 - appName: 'FcnTestApp1', name: 'FcnTestApp1-ViewController-context-root', context-path: '/FcnTestApp1-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1c5c9ca[
    ]] Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'backing_start' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:133)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:248)
         at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
         Truncated. see log file for complete stacktrace
    >
    Any idea what might cause this?
    Thanks

  • Problem Refreshing Dynamic Region

    Hi ,
    I am facing problems in refreshing the dynamic region. Here is the usecase :
    One JSPX page : TestDynamicTaskflow.jspx
    First Taskflow : LinksTF -> Has one page with 3 command Buttons and one dynamic region.
    On click of 1st and second command button link tf-1 should be displayed and for third command button  tf2.
    Second Taskflow : tf-1    -> Taskflow has one jsff page with a inputText field ( required = true )
    Third taskflow : tf-2  -> Taskflow has one  jsff page with a inputText field ( required = true )
    Problem : Click 1st command button and tf1 is loaded. Now enter some value in inputText and click commandButton2 ... tf-1 is loaded but inputText retains the entered value... This is what is issue .

    Hi,
    the task flow is reloaded as you should be able to tell when setting a print message to be invoked in the task flow initializer. I assume the problem is with the text component not resetting its value. So its a JSF lifecycle problem, not a region issue. Have the command link switching the task flow, issuing
    oracle.adf.view.rich.util.ResetUtils.reset(regionId_in_here);
    Frank

  • Page Template Popup with Dynamic Region TaskFlow

    Hi.
    I have a Page Template that is used extensively in my application to provide a consistent explorer panel containing tree links to various pages in the application. I'm trying now to enable users to edit configuration via a tree link. I would like to implement this as a Popup in the page template which contains a dynamic region that contains a bounded Task FLow (so I can control the transaction for the edit activity). I'm running into all manner of issues...
    The Tree node is defined as follows:
    <f:facet name="cognition_model_view.viewRepListVO">
           <af:group id="pt_g4">
              <af:commandImageLink id="pt_ot15" text="#{node.Viewname}"
                                                action="callRouter"
                                                actionListener="#{backingBeanScope.templateBacking.viewsGoActionListener}"
                                                icon="/pics/folder-icon.png"
                                                shortDesc="View: #{node.Viewdesc} | Filter: #{node.Filtername}"
                                                partialSubmit="true"/>
              <af:commandImageLink id="pt_ot16"
                                                icon="/pics/edit1.png"
                                                shortDesc="Edit View Config"
                                                partialSubmit="true">
                     <af:setPropertyListener from="#{node.Appname}"
                                                       to="#{backingBeanScope.templateBacking.editViewAppName}"
                                                       type="action"/>
                     <af:setPropertyListener from="#{node.Viewname}"
                                                       to="#{backingBeanScope.templateBacking.editViewName}"
                                                       type="action"/>
                     <af:setPropertyListener to="#{backingBeanScope.templateBacking.editViewType}"
                                                       from="#{node.Sourceview}"
                                                       type="action"/>
                     <af:showPopupBehavior popupId="::pt_p_edView"
                                                       triggerType="click"/>
              </af:commandImageLink>
            </af:group>
    </f:facet>The property listeners are to hold values that will be passed as parameters to the region's task flow.
    The Popup is defined here:
    <af:popup id="pt_p_edView" contentDelivery="lazyUncached"
                  popupCanceledListener="#{backingBeanScope.editPopupTFHandler.cancelPopup}"
                  popupFetchListener="#{backingBeanScope.editPopupTFHandler.showPopup}"
                  binding="#{backingBeanScope.editPopupTFHandler.editPopup}">
            <af:panelWindow id="pt_pw1"
                            title="#{backingBeanScope.templateBacking.editViewName} - Edit View Configuration"
                            contentHeight="250" contentWidth="500" stretchChildren="first" modal="true">
                <af:region value="#{bindings.dynamicRegion1.regionModel}" id="pt_r1"/>
            </af:panelWindow>
        </af:popup>The taskflow binding for the template is as follows:
        <taskFlow id="dynamicRegion1" taskFlowId="${backingBeanScope.editPopupTFHandler.dynamicTaskFlowId}" xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="inputApplicationName" value="#{backingBeanScope.templateBacking.editViewAppName}"/>
            <parameter id="inputViewType" value="#{backingBeanScope.templateBacking.editViewType}"/>
            <parameter id="inputViewName" value="#{backingBeanScope.templateBacking.editViewName}"/>
          </parameters>
        </taskFlow>The managed bean to hold the dynamic taskflowId (editPopupTFHandler) is referenced in the adfc-config.xml file at "backingBean" scope, and looks like this:
    public class editPopupTFHandler {
        private String taskFlowId = "/WEB-INF/editViews/editViewsTF.xml#editViewsTF";
        private String emptyTaskFlowId = "";
        private String currentTaskFlowId = taskFlowId;
        private RichPopup editPopup;
        public editViewPopupTFHandler() {
        public String getDynamicTaskFlowId() {
            return currentTaskFlowId;
        public void cancelPopup(PopupCanceledEvent pce) {
            currentTaskFlowId = emptyTaskFlowId;
        public void showPopup (PopupFetchEvent popupFetchEvent) {
               currentTaskFlowId = taskFlowId;
        public void setEditPopup(RichPopup editPopup) {
            this.editPopup = editPopup;
        public RichPopup getEditPopup() {
            return editPopup;
    }If I don't define the bean at backingBean scope, I get a Target Unreachable error from any page using the template.
    When I attempt to use the link to the popup, the popup displays but the region content does not. Is this a scoping issue?
    Additionally, after pressing combinations of the 2 commandimagelink components, the first link stops submitting... this may be a side-effect of the region display though?
    Again, as I'm quite new to ADF I don't know how to overcome or avoid these issues, or whether there is a better method to achieve an edit capability in a popup window from a page template.
    Thanks for your help. I'm using JDeveloper 11.1.2.1.0 by the way.

    Hello again. I've managed to get the dynamic region displaying once I restarted JDeveloper and re-created the Region and backingBean. This has happened before - is JDeveloper known to get "confused" (like me!) in this way?
    There are still issues though. The backingBean contains a PopupCanceledListener as follows:
        public void cancelPopup(PopupCanceledEvent pce) {
            System.out.println("CANCEL POPUP - Current Task FLow now empty");
            currentTaskFlowId = emptyTaskFlowId;  // where emptyTaskFlowId = ""
            System.out.println("CANCEL currentTaskFlowId = " + currentTaskFlowId);
        }Simple enough, but the dynamicTaskFlowId is not holding its cleared value. Subsequent call to the getter shows a non-null value...?
    The Popup has the ContentDelivery="lazyUncached" and ChildCreation="deferred". The TaskFlow Binding has Refresh="default" and activation="deferred". With these property values the Popup is displays the correct value on its first use but then keeps that same value on any subsequent selection. I don't know whether this is because of the TaskFlow not correctly resetting or something else...
    Can anyone help me please. This is beyond frustrating. The behaviour of these various property settings is not at all predictable for me... Thanks.

  • Problem with taskflows within the Dynamic region

    Hi,
    I am creating a application which have two bounded taskflows search-flow and admin flow.In admin-flow taskflow i have two jsff pages admin_login and welcome.whenever we click login button present in login.jsff it should navigate to welcome page.I have created the control flow case (from outcome is welcome).I have created a Home.jspx in adfc-config.xml.Using the splitter i divided the page into two facets.In facet 1 there are two command links search, admin.In the second facet i have dropped search flow as dynamic region and written the following beanclass.
    package com.Search;
    import oracle.adf.controller.TaskFlowId;
    public class Search {
    private String SearchtaskFlowId = "/WEB-INF/Search-fllow.xml#Search-fllow";
    private String AdminTaskFlowId = "/WEB-INF/Admin-flow.xml#Admin-flow";
    private String currentTF = "home";
    public SearchFlight() {
    public TaskFlowId getDynamicTaskFlowId() {
    if (this.getCurrentTF().equalsIgnoreCase("home"))
    return TaskFlowId.parse(SearchtaskFlowId);
    else
    return TaskFlowId.parse(AdminTaskFlowId);
    public void setCurrentTF(String currentTF) {
    this.currentTF = currentTF;
    public String getCurrentTF() {
    return currentTF;
    When i click the admin link in home.jspx the admin_login.jsff page is opening.After entering the credentials and clicking login button it is going to the search page of search task-flow not to the welcome.jsff.
    The admin_login.jsff is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:decorativeBox id="db1">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1" inlineStyle="width:50cm; height:50.0cm;">
    <p>
    <af:inputText label="UserName" id="it1"
    binding="#{LoginBean.userName}"/><af:inputText label="Password"
    id="it2"
    secret="true"
    binding="#{LoginBean.password}"/><af:commandButton text="Login"
    id="cb1" binding= "#{LoginBean.login}"
    action="#{LoginBean.login_action}" />
    </p>
    <p>
    <af:commandButton text="Cancel" id="cb2"/>
    </p>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="top">
    <h:outputFormat value="Administrator Login" id="of1"
    style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:large; color:Purple;"/>
    </f:facet>
    </af:decorativeBox>
    <!--oracle-jdev-comment:preferred-managed-bean-name:NewLoginBean-->
    </jsp:root>
    The loginbean for the admin_login.jsff is
    package com.LoginBean;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.jdbc.OracleDriver;
    public class Login {
    public Login() {
    private RichInputText userName;
    private RichInputText password;
    private RichCommandButton login;
    public void setUserName(RichInputText userName) {
    this.userName = userName;
    public RichInputText getUserName() {
    return userName;
    public void setPassword(RichInputText password) {
    this.password = password;
    public RichInputText getPassword() {
    return password;
    public void setLogin(RichCommandButton login) {
    this.login = login;
    public RichCommandButton getLogin() {
    return login;
    public String login_action() {
    // Add event code here...
    String UserName = this.getUserName().getValue().toString();
    String Password = this.getPassword().getValue().toString();
    Connection conn;
    try {
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM administrator where username = '"+UserName+"' and password='"+Password+"' " );
    if (rset.next()) {
    conn.close();
    return "welcome";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "error";
    public static Connection getConnection() throws SQLException {
    String username = "hr";
    String password = "hr";
    String thinConn = "jdbc:oracle:thin:@localhost:1521:XE";
    DriverManager.registerDriver(new OracleDriver());
    Connection conn =
    DriverManager.getConnection(thinConn, username, password);
    conn.setAutoCommit(false);
    return conn;
    }

    in your web.xml find this entry and put success_url. to weblogic.jspx
    <servlet>
        <servlet-name>adfAuthentication</servlet-name>
        <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
        <init-param>
          <param-name>success_url</param-name>
          <param-value>/faces/index</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>

  • Using facelets and javascript in dynamic regions

    Hello
    I'm using JDeveloper 11g 11.1.1.4.0.
    In the JDeveloper's documentation I found that there is the best parctice to use facelets.
    Now, I have next problem.
    I use dynamic region iside xhtml (facelets) page. Inside that dynamic region there is a view (jsff).
    The problem is that I can't use any custom JavaScript in that jsff.
    I tried next thing:
                <trh:script id="trhs1">
                    <af:resource type="javascript">
                      testm = function (event) {
                      alert('qqq');
                    </af:resource>
               </trh:script>
    <af:clientListener method="testm" type="dblClick"/>If that task-flow is placed inside jspx (not facelets) page, then all works.
    If that task-flow is placed inside xhtm (facelets) page, I have an error from browser that javascript's 'testm' method is not defined.
    I checked source code of the result html-page, and my javascript code really doesn't exists there.
    I can fix it by moving javascript code from the taskflow's jsff to surrounding xhtml page or using jspx page, but, maybe, there is another solution?
    Anatolii
    Edited by: Anatolii. on 11/4/2011 0:32

    Thank for replay, Shay
    I found that in Web User Interface Developer's Guide for Oracle ADF, 2 Getting Started with ADF Faces, Section 2.4, "Creating a View Page":
    Best Practice: Use Facelets to take advantage of the following:
    The Facelets layer was created specifically for JSF, which results in reduced overhead and improved performance during tag compilation and execution.
    Facelets is considered the primary view definition technology in JSF 2.0.
    Some future performance enhancements will only be available with Facelets
    Now I have facelets page with dynamic region, it works.
    I've decided to use facelets because of the forthcoming JDeveloper with JSF 2.0 and for performance improvements described above.
    Do you think it's better to use jspx?
    I have not found any limitations for facelets in Web User Interface Developer's Guide for Oracle ADF and Fusion Developer's Guide for Oracle ADF
    Anatolii

  • Dynamic Regions w/Train Component

    I'm working on a web app (JDeveloper 11g) where one page has a dynamic reqion with a task flow associated with it that sets the fragment for the view. Most of the fragments for this region use a page template with a train component. Navigation using the train component mostly works fine- the fragment is replaced by a new fragment each time a train link is clicked.
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment. I get a similar error if I set the scope of the bean to session or pageFlow. Only when I set the scope to backingBean or None do I avoid the error message.
    But then another problem occurs. One of the fragments in the flow for the inner region has a panelAccordion with several showDetailItems consisting of selectManyCheckboxes. The panelAccordion doesn't list anything, and locks up if I try to open or close any showDetailItem. This behavior is similar to when the scope for the bean managing the flow is not set to viewScope or higher.
    In stepping through the code, I noticed that the outer region's flow code runs after the inner region's trigger event code that sets the inner region's taskFlowId, but before the inner region's flow code, so the inner region's taskFlowId setting is lost. I tried throwing the setting into session context and retrieving it, and that almost works. If I actually select any of the selectManyCheckboxes, they are lost once I move to a different fragment in the inner region.
    Does anybody have any ideas on how to I get this page working, alternatives to the approach I'm taking, settings I should check, and/or any reference material I could consult?
    Thanks in advance!
    Edited by: tmurphy on Jul 6, 2010 3:30 PM

    Hi,
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment.
    Is the managed bean defined in the metadata definition of the bounded taskflow that you load ? Note that bounded task flows are only initializing their managed beans when they are loaded. If you define the managed bean in the parent bounded task flow then the viewScope also is the one of the parent flow. Appears as if this is the problem you describe
    Frank

Maybe you are looking for

  • IPhoto event library - is it safe to delete same events/photos in iPhoto?

    I started importing video clips from my iPod Touch to iPhoto, then imported them to the iMovie event library. This takes too much space and is inefficient. For the rest of the project, i'll import it directly to iMovie. Is it safe now to delete all t

  • Count me in. iMac can't read burned DVD-Rs. Fixes?

    I've browsed through the posts here and see quite a few people with the same (or a similar) issue. My computer no longer "sees" burned DVD-Rs. It spins and spins, then (without any sort of error message) spits it out. It recognizes commercial DVDs ju

  • Make a book with what?

    I would like to make a book. The book will have some text, and many images, graphics, photos. I will include audio layover and would like it to be a download from my own website, for a fee. Possibly sell it on Amazon. I don't want to go through the r

  • Lost and stolen list.... found phone, how do I transfer to someone else?

    I found my phone.  It is on the Lost and Stolen list.  How do I get it off the list so I can give the phone to someone else and it can then be activated by them?  Thank you.

  • Portal is down and HTTP 404 - File not found

    Hi All, our Portal dispatcher is running and server is not connected. shows the following error... HTTP 404 - File not found http://server: 50000/index.html - im able to get http://server: 50000/irj/portal - getting... HTTP 404 - File not found Pleas