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.

Similar Messages

  • Best approach -Tabs based ADF Tree left side navigation with Dynamic Regions with out UI Shell

    Hi,
    Somebody can help for the best approach to implement the following requirement.
    Req: When the user select the ADF Tree left side navigation menu, each menu will open as multiple tabs(Dynamic Tabs) in right side content area with out UI Shell Template.
    I completed the
    Step-1: From the Model project, I can able to render ADF Tree in the using view and view links. I can get the adf tree which is having 3 menu items. Each menu item having 2 sub menu's.
    I took each menu item as one(1) taskflow, each taskflow will have two(2) fragments.
    Total I have 3 task flows as Menu Items and 6 fragments for sub menu's.
    Step-2:  My question is How do I implement Tab based the ADF tree navigation (left side area to dynamic regions in content area) through dynamic regions? Please provide the steps in view layers.

    Than ks for your response.
    This is working fine for ADF Tree navigation with dynamic regions if the taskflow having only one fragment. if the taskflow having more than one fragments, this will not work. The following conditions are always satisfies one page fragment of either "employees" or "departments" task flow.  If the "employees" task flow have 2 page fragments, it's not work even you pass parameters through routers.
    public TaskFlowId getDynamicTaskFlowId() {
    if (currentTaskFlowID == null ||
    currentTaskFlowID.equalsIgnoreCase(“employees”)) {
    return TaskFlowId.parse(employeetaskFlowId);
    if (currentTaskFlowID != null &&
    currentTaskFlowID.equalsIgnoreCase(“departments”)) {
    return TaskFlowId.parse(departmetaskFlowId);
    return TaskFlowId.parse(employeetaskFlowId);
    My question is "Same use case with Dynamic Tabs" when the user click on any adf tree node.

  • Encountering error while working with Dynamic Regions.

    Hi All,
    I am a beginner in ADF and on a quest to learn ADF. Sometimes I am struggling in the process. Now, when I am working with Dynamic Regions, encountered problem below
    Step 1 : Created a simple department TaskFlow with Department Form
    Step 2: Created a Simple employee TaskFlow with Employee Details
    Step 3: Created a Main page with oracle 2 column layout
    Step 4 : Dragged and dropped department TaskFlow on to main page second facet as Dyanmic region . Created a bean as RegionBean
    Step 5 : Dragged and dropped department TaskFlow as Command Link on the first facet
    Step 6 : Dragged and dropped employee TaskFlow as Command Link on the first facet
    The page runs and shows department information when it renders. But when I click on employees command link, at first it shows employees table with no data and says "ACCESS DENIED ". Then if I click on either department or employee command link, it errors out with below info
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'vs' resolved to null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:476)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:390)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputDateRenderer.decodeInternal(SimpleInputDateRenderer.java:73)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:342)
         at org.apache.myfaces.trinidad.render.CoreRenderer.decode(CoreRenderer.java:292)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:865)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:965)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:287)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer$UIXColumnFilterWrapper.processDecodes(BaseColumnRenderer.java:2108)
         at org.apache.myfaces.trinidad.component.UIXCollection.processComponent(UIXCollection.java:1087)
         at org.apache.myfaces.trinidad.component.TableUtils$1.process(TableUtils.java:238)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
         at org.apache.myfaces.trinidad.component.TableUtils.processFacets(TableUtils.java:232)
         at org.apache.myfaces.trinidad.component.TableUtils$2.process(TableUtils.java:261)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:48)
         at org.apache.myfaces.trinidad.component.TableUtils.processColumnFacets(TableUtils.java:253)
         at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:379)
         at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:206)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:200)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at oracle.adf.view.rich.component.fragment.UIXRegion.decodeChildrenImpl(UIXRegion.java:635)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:75)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1048)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:926)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1519)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:372)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Please help me !!!!!!
    Thanks

    Hi Shay Shmeltzer ,
    Thanks for your quick reply. Below is response for your queries
    What scope did you specify for the bean? View Scope
    Also which browser are you using? Firefox
    Thanks for the link. I started to build dynamic region after taking a look at the video
    What else do you think might be the issue
    Thanks
    Edited by: User44444 on Dec 4, 2012 12:44 AM

  • 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?

  • 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

  • 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

  • Can I dynamically apply a page template or embed a region in multiple pages

    I have some pages that I would like to be accessible in two ways:
    1. as a popup (using the Popup template) in Edit mode
    2. as a regular page (using the Application's default template) in New mode
    I don't want to make a copy of each page as that is a maintenance headache that shouldn't be necessary. Is there a way to either:
    1. Dynamically select the template when the page loads OR
    2. Create a region that can be shared by two or more pages (like an asp "Include"). I looked for this option in my Shared Components and could not find it.
    As always, creative solutions much appreciated!
    Sydney

    Hello,
    I believe page 0 is what you are looking for. Please read more about it in here -
    http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/ui.htm#sthref1159
    Regards,
    Arie.

  • Contribute Acting strange - template parameters with repeating regions

    Basically what I'm trying to achieve is that there is a
    repeating region on a page, and each region is supposed to
    alternate colors. To achieve this, the regions with the colors are
    put into a div which has a background color applied to it. To do
    this, I have created two expressions, one to check to see if it's
    an even numbered region, and if so, to open the div, and another to
    close the div. That looks like this:
    quote:
    <!-- TemplateBeginRepeat name="Article" -->
    @@((_index & 1) ? shade : noshade )@@
    stuff
    @@((_index & 1) ? shadeend : noshade )@@
    <!-- TemplateEndRepeat -->
    At the top, I have three template parameters to go along with
    these:
    quote:
    <!-- TemplateParam name="shade" type="text"
    value="<div>" -->
    <!-- TemplateParam name="shadeend" type="text"
    value="</div>" -->
    <!-- TemplateParam name="noshade" type="text" value=""
    -->
    Which look like this on the actual pages:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" -->
    <!-- InstanceParam name="shadeend" type="text"
    value="&lt;/div&gt;" -->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    The odd thing is that, when I add an editable region,
    something weird occurs with the template parameters and they end up
    looking like this:
    quote:
    <!-- InstanceParam name="shade" type="text"
    value="&lt;div&gt;" --><!-- InstanceParam
    name="shadeend" type="text" value="&lt;/div&gt;"
    -->->
    <!-- InstanceParam name="noshade" type="text" value=""
    -->
    And that, of course, results in having a nice "->" showing
    up at the top of my page. The repeating region appears to work. It
    changes background colors just like it should, but I have no idea
    why it's throwing in the "->" at the end.

    For grins, try changing this -
    <div id="content1" style="display:none">
    to this (IN THE TEMPLATE FILE) -
    <div id="content@@(_repeat._index)@@''
    style="display:none">
    (that should be a " character after the last @ sign - I had
    to use two '
    characters to keep the code from getting munged in my
    newsreader)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:g2m3cq$85h$[email protected]..
    >I need to see the template markup around the repeating
    region, please.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "ITLogic" <[email protected]> wrote in
    message
    > news:g2m25n$6se$[email protected]..
    >> Sure. I'm using DW CS3. Here is a copy of the
    repeating regions I'm
    >> trying to
    >> create. Notice each DIV has a sequential ID. I could
    go hand edit this,
    >> but I'm
    >> trying to automate it as much as possible. I am
    selling Contribute as a
    >> means
    >> for clients to edit their own content. Most don't
    know how to spell HTML
    >> much
    >> less know how to use it.
    >>
    >> <div id="content0" style="display:''">
    >>
    >> <!-- ADD TICKER's CONTENT #1
    HERE--------------------->
    >>
    >> <p>Hello</p>
    >>
    >> <!-- END CONTENT #1----------------->
    >>
    >> </div>
    >>
    >> <div id="content1" style="display:none">
    >>
    >> <!-- ADD TICKER's CONTENT #2
    HERE--------------------->
    >>
    >> <p>World</p>
    >>
    >> <!-- END CONTENT #2----------------->
    >>
    >> </div>
    >>
    >

  • BI  Layout/Template | Table with dynamic number of columns

    hi!
    i have a problem concerning the creation of a dynamic report with the BI publisher.
    in my BI template i need a table with a dynamic number of columns. i have searched the
    forums but havent really found a solution for this type of problem.
    first of all this is A dummy-structure of my dataset:
    <ROWSET>
         <ROW>
              <FIELD1>1</FIELD2>
              <FIELD2>2</FIELD2>
              <FIELD3>3</FIELD3>
              <FIELD4>4</FIELD4>
         </ROW>
         <ROW>
              <FIELD1>a</FIELD2>
              <FIELD2>b</FIELD2>
              <FIELD3>c</FIELD3>
              <FIELD4>d</FIELD4>
         </ROW>
    </ROWSET>
    in the report the fields represent the columns i need in the table.
    the problem is, that the number of the fields vary. in this example i have 4 fields/columns
    but another time i may have 6 or 10 etc..
    my dataset is always different because i am loading my dataset via a http request which is
    returning the needed data in XML.
    is there a nativ possibility within the publisher to generate the columns dynamically?
    i read about <?split-column-header:group element name?> etc. but this is only for cross-tables.
    can anybody give me a hint how to approach this problem?
    would be very glad for some advice.
    thanks a lot in advance!

    Specific answer is here
    http://winrichman.blogspot.com/2008/09/dynamic-column.html
    but these link let you know, how to do
    http://winrichman.blogspot.com/search/label/Dynamic%20column
    http://winrichman.blogspot.com/search/label/Cross-tab
    http://winrichman.blogspot.com/search/label/cross%20tab

  • Dynamic Regions and parameters - issue

    Jdev 11.1.1.6
    I have a main page that contains a dynamic region. I want to pass parameters to the region.
    Note that I have successfully created parameters for a NORMAL region inside a "parent" form. With a normal "child" region in a "parent",
    1. Open the "child" taskflow, click on the whitepace, go to overview, then paraemeters and define a parameter name and value, ex: InputParam and #{pageFlowScope.InputParam}.
    2. Open the "parent" form, click on the region, go to bindings, and edit the region. You see the parameter you specified, InputParam and you can enter a value. This value will come from the parent.
    3. Set refresh to if needed.
    However,
    With a dynamic region containing more than one "child" taskflow, I am getting an error. I do everything the same above.
    However, when I have the taskflow selected on the bindings tab of the parent form, and click on the structure window, parameter node, The ID text field is surrounded by orange, and a message displays that the reference to "InputParam" is not found.
    How are the name or id values specified for a dynamic region? How does one map a parameter from the parent to the "child"? Do you need to put this into a bean?
    Thanks,
    Stuart

    1) Parent A tasflow contains Child B taskflow.
    2) Child B expects a parameter called 'inputParameterChild'
    3) This will be defined inside the child B taskflow with 'java.lang.String' and value as '#{pageFlowScope.inputParam}'
    4) When you click the child B taskflow in parent A taskflow you will see the parameter expected by child B as 'inputParameterChild'
    5) Now you can pass the value as '#{pageFlowScope.inputParam}' , here you should have the inputParam set in the bean or in the parent taskflow as explained in step 2 and 3
    are you still facing the issue?

  • 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 Region: what am I doing wrong?

    Jdev. 11.1.2.3.0
    I have been having problems with dynamic regions.
    I have two adf forms; mainPage.jsf and mainRegion.jsf. I have also two adf forms (page fragments), employee.jsff and department.jsff, I have also two bounded task flows; employee-task-flow and department-task-flow. In the mainPage.jsf, I have two buttons, employee and department.
    What I want to achieve is that when a user clicks the department button, the department-task-flow will be rendered on the mainRegion and when the employee button is clicked, the employee-task-flow will be rendered.
    In the mainRegion.jsf, I dragged the department-task-flow on to it and I choose dynamic region. I also dragged the employee-task-flow and I choose dyanmic link. The department button is bound to this method#{TestRegionManagedBean.departmenttaskflow}  while the  employee button is bound to this #{TestRegionManagedBean.employeetaskflow}. 
    When I ran the application, the mainPage displays, however, when I clicked on any of the buttons, it does not display anything.
    This is the managed been:
    package view;
    import oracle.adf.controller.TaskFlowId;
    public class TestRegion {
    private String taskFlowId = "/WEB-INF/department-task-flow.xml#department-task-flow";
    public TestRegion() {
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String employeetaskflow() {
    taskFlowId = "/WEB-INF/employee-task-flow.xml#employee-task-flow";
      return null;
    public String departmenttaskflow() {
    taskFlowId = "/WEB-INF/department-task-flow.xml#department-task-flow";
      return null;

    Try as follows
    public void launchPage(String taskFlowId) {
        getDynamicTabRegion().setTaskFlowId(taskFlowId);
        refreshCurrentPage();
    protected DynamicTabRegion getDynamicTabRegion() {
        FacesContext fc = FacesContext.getCurrentInstance();
        DynamicTabRegion dynamicTabRegion =
            (DynamicTabRegion)fc.getApplication().evaluateExpressionGet(fc,
                                                                        "#{viewScope.dynamicRegion}",
                                                                        Object.class);
        return dynamicTabRegion;
    private void refreshCurrentPage() {
        FacesContext context = FacesContext.getCurrentInstance();
        String currentView = context.getViewRoot().getViewId();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot x = vh.createView(context, currentView);
        context.setViewRoot(x);

  • How to set display size of a Region or Dynamic Region?

    Hi,experts,
    In jdev 11.1.2.3,
    I drag and drop a task-flow into a jsf page to create a Region,
    and set display size for the region, source code as:
    ===================
    <f:facet name="second">
    <af:decorativeBox theme="medium" id="db1">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll" id="pgl1"
    inlineStyle="width:1200px;height:700px;">
    <af:region value="#{bindings.trainflow11.regionModel}" id="r1"
    inlineStyle="width:1200px;height:700px;"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:decorativeBox>
    </f:facet>
    =================
    But, the Region is only showed a small fraction area on the parent jsf page whenever during design or run time.
    How to set display size of a Region or Dynamic Region?
    Thanks!

    Hi,
    the decorative box is supposed to stretch components in the center facet, so at runtime the region should stretch. Can you try with a static region to see if this is an issue with dynamic regions?
    Frank

  • How to display the dynamic region in full size

    Hi,
    I'm not able to display the dynamic region in full size.
    In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully).
    How to do this?
    Thanks in advance,
    Sundar

    More than likely it has something to do with your parent layout element. I'd suggest putting your region in an af:panelStretchLayout or similar container that stretches its children. Some of the elements can be a little tricky though, such as af:panelTabbed. It has an attribute that must be set to stretch its first child.

  • Calling a stored workspace procedure/function in page template

    I have an unusual puzzle. I am trying to find a way to call a stored procedure or function in a page template; ie, through HTML/javascript.
    I maintain a website with several dozen applications and I currently have the page templates in all of these applications subscribed to one master template, so that changes can be made in one place and implemented across all the applications. So far, the only content I can display on every page in every application through page template subscription is static content; dynamic content (ie content generated based on data in the database) is implemented page-by-page (or application-by-application).
    I'm wondering if there is a way to call stored procedures/functions from the page template to create dynamic content (based on the :APP_USER identity, for example). htmldb_Get() doesn't seem to be helpful, because as far as I can tell it only calls on-demand application processes, not workspace procedures/functions.
    Is there any way at all that a workspace procedure/function can be called directly from the page template (eg with a javascript function of some kind)? Again, I am trying to avoid having to use any application/page-level apex entities (items, processes, etc) so that I can just put the javascript or whatever in the page template and refresh all the applications in my workspace.
    Thanks in advance!
    Jonathan Cole
    PS - I am currently using v3.1

    Just to add the owner in output :
    SCOTT@demo102> ed
    Wrote file afiedt.buf
      1  select owner, table_name, ltrim(max(sys_connect_by_path(column_name,','))
      2                     keep (dense_rank last order by position),',') as PKcolumns
      3  from
      4  (select a.owner, a.table_name, b.column_name, b.position
      5   from all_tables a, all_cons_columns b, all_constraints c
      6   where a.owner=b.owner
      7   and   a.table_name=b.table_name
      8   and   b.owner=c.owner
      9   and   b.constraint_name=c.constraint_name
    10   and   c.constraint_type='P'
    11   and   a.table_name in ('SDO_COORD_AXES','EMP'))
    12  group by owner, table_name
    13  connect by prior owner = owner and prior table_name = table_name and prior position = position - 1
    14* start with position = 1
    SCOTT@demo102> /
    OWNER                          TABLE_NAME                      PKCOLUMNS
    MDSYS                          SDO_COORD_AXES                  COORD_SYS_ID,ORDER
    SCOTT                          EMP                             EMPNO
    SCOTT@demo102> Nicolas.

Maybe you are looking for

  • Redraw order problems with paintComponent

    hi, i've got this test code below which is simply meant to overlay the scrolling transparent text "HELLO" a few times on top of a normal component my problem is that the image in the panel, is seemingly being redrawn after the text, when it should be

  • Alternate code

    can any one provide me alternate code for following statement using 1.READ from internal table, 2. by using "for all entries". <u>following is the code</u> *TABLE J_5HPDBEAR LOOP AT gt_cr INTO gs_cr.    SELECT *  FROM j_5hpdbear WHERE annuser = gs_cr

  • Adobe Intractive Forms error

    Dears, I have installed Netweaver 2004s on Windows 2003 server. Now my users are getting error while they are using adobe service of SAP. Error is:    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Rend

  • Simple question for getting a wifi connection for Graphite Ibook..

    I have a Graphite 466mghz Ibook with a airport card. My home computers are on a highspeed cable modem and then through a router to; one windows pc and one mac G4. I want my laptop to be wireless in my home and still leave my home system in it's curre

  • I dropped my iPad 2 while in its case and the screen cracked. Is it cheaper to buy a new iPad or can they fix it?

    Screen cracked on my iPad , how much is it to get it fixed?