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

Similar Messages

  • Issue with refresh of task flow in dynamic region

    Hi All,
    I am using Jdeveloper version 11.1.1.6. In my fusion application I am facing an issue with the task flow refresh in the dynamic region. In my application, I have one task flow in which the side navigation command links are there and on the right side it has a dynamic region which is used to display the respective task flows on click of navigation links. Now two of the links actually call the same task flow in dynamic region but for different purpose. One for creating a record and another one for modifying the record. The default activity of that task flow has a page fragment that has couple of fields. One a drop down and another one a text field for searching the accounts against which the record is to be created or modified. On click of the navigation link, I set the task flow id to be displayed and refresh the dynamic region. Now the issue is with those two links which shows the same task flow. Let's say  I searched for a record by putting some value in input text and then went on to modify flow using the modify navigation link. Then the value that I entered in search input text in the create flow stays and does not go away. I found out the cause for the issue and this is happening because of the immediate = true on the navigation command links. Now I cannot remove that because of the obvious reason that then it will start throwing exceptions for the mandatory fields when I am in middle of any flow. Is there any way to achieve it.
    Please help as this is quite urgent. I can also upload the sample application if anyone needs it.
    Regards
    Ajay

    try to put RefreshCondition in the pageDef file for that particular task Flow and try to make that condition to true only when you switch between edit or add. While switching, make sure that the mapped bean properties should also point to respective values i.e. either empty for new or holds some value for edit.
    So, when ever the above condition returns true, task flow gets refreshes and it will holds only the current values not the old values.
    i hope this will resolve your issue.

  • Swap task flow in dynamic region from menuitem in menubar

    Hello,
    I have a dynamic region and two task flows. I have action listeners that swap the task flows into the dynamic regions. When these action listeners are tied to buttons, everything works as expected, but if i attach them to menuitems on a menubar, despite the fact the the listener is executed (based on log file debugging), the task flow in the region does not change.
    Can anyone please give me an idea why, and exactly how someone can swap a task flow in a dynamic region from a menuitem.
    I'm using Jdeveloper 11.1.1.0.1
    Thanks
    Edited by: fakintoy on Apr 22, 2009 3:45 PM
    Edited by: fakintoy on Apr 22, 2009 3:46 PM
    Edited by: fakintoy on Apr 22, 2009 4:06 PM

    Hi,
    My guess is that the region is not added to the list of partial targets. Add a partialTrigger on the region pointing on the menu item.
    p.s. Code snippet would really help to get a more precise answer here
    Regards,
    ~ Simon

  • Navigate to initial task flow in dynamic region with JDeveloper 12c

    I have a home page with a dynamic region and three links and I am working with page fragments. The initial bounded task flow is "btfInicio".
    The requirement is that in each bounded task flow I have to implement a close button to return to the initial bounded task flow. This is my code:
    My Bean for my home page.
    public class AdministradorActividades extends DataControlBean {
        private HashMap parametrosGenerales = new HashMap();
        private String taskFlowId = "/WEB-INF/btfInicio.xml#btfInicio";
        private RichRegion regionPrincipal;
        public String gestionarDatosClinicos() {
            taskFlowId = "/WEB-INF/datosClinicos/btfDatosClinicos.xml#btfDatosClinicos";
            refrescarRegion();
            return null;
        public void refrescarRegion(){
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    My Home page.
    <af:decorativeBox id="db4" theme="medium"
                                                                          inlineStyle="margin-bottom:5px; margin-left:5px; margin-right:5px; margin-top:5px;">
                                                            <f:facet name="center">
                                                                <af:region value="#{bindings.regionDinamica.regionModel}"
                                                                           id="rPrin" partialTriggers="::lCli ::lCon ::lRep"/>
                                                            </f:facet>
                                                        </af:decorativeBox>
    My Home page Def:
    <taskFlow id="regionDinamica" xmlns="http://xmlns.oracle.com/adf/controller/binding"
                      taskFlowId="${pageFlowScope.managerRegion.taskFlowId}" activation="deferred"
                      parametersMap="#{pageFlowScope.managerRegion.parametrosGenerales}" Refresh="ifNeeded"/>
    I have tried this inside a fragment from my bounded task flow "btfdatosClinicos" where I have a button , but doesn't work. The home page is not refreshed:
            AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
            AdministradorActividades admActividades = (AdministradorActividades) adfContext.getPageFlowScope().get("managerRegion");
            admActividades.setTaskFlowId("/WEB-INF/btfInicio.xml#btfInicio");
            UIComponent region = findComponentInRoot("rPrin");
            adfContext.addPartialTarget(region);
    If I Implement a control flow case inside my bounded task flow "btfdatosClinicos" to "btfInicio" then I can see the page fragment that correspond to the bounded task flow "btfInicio", but if I clic one of the three links, then the action event is not executed.

    Hi Miguel,
    I think you are complicating the requirement without needing. Why would you put the back button inside your other taskflows? This would be useful just if you are calling those from another bounded taskflows.
    Look what you can do;
    You can create your links for dynamic regions. Cool. But in your decorative box, in the top facet, you can drag a drop the btfinicion and display it as a link (yes, this will be your back button). and that's it. You don't need to mess with partial triggers or refrescar regiones methods.
    Let me know if this doesn't impact your requirement.
    By the way, en que pais trabajas?
    Saludos

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

  • ADF Security, Task Flow as a region in a page resource grant

    JDeveloper 12c (12.1.2); Application uses ADF form based security, external LDAP provider (Active Directory)
    After sign-in page (upon successful authentication/authorization) user is forwarded to a page that executes VO method prior to render. I am new to task flow concept and am told to achieve this like:
    - create bounded task flow, with method call activity (execute exposed AM method that calls VO method, runs custom SQL) and view activity as page fragment.
    - then drop the above task flow into a page as a region
    In ADF security setup, I gave resource grant task-flow to certain application role. Started the application, login and got 403 error. Then went back and gave resource grant 'view' to the actual page that contains task flow. It worked fine.
    So the question is, when protecting application (implemented with task flows) with ADF security, I thought it is enough to grant those task flows to whatever application roles (groups) and inherently any page that uses that task flow(s) (as a region) will be protected?
    From this test, it seems that I have to assign each page (that has task flow as a region) to application roles individually?

    Hi,
    any page that is contained in a bounded task flow is protected  by the task flow permission grant, this is correct. If this is not what you see, please file a bug with support or send me a simple reproducible test case please. My mail address (replace all < name > with the described symbol.
    frank <dot> nimphius <at> oracle <dot> com
    The test case will need to be in a ZIP file nemaed to "unzip" and should be able for me to run stand alone (please no database scripts to run prior to try the test case)
    Frank

  • 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

  • How to get return values from task flow in af:region ?

    Hi!
    I'm working with a taskFlow that is rendered inside a popup using the "popup inside a region pattern" (http://www.oracle.com/technology/products/adf/patterns/popupregionpattern.pdf), but now this taskFlow has an input parameter and a return value definition. So the question is how to get a value returned by this taskFlow thas is called inside a region?
    Any suggestion?
    Thanks in advance!

    Hi,
    write the value to a shared memory scope like session and read it in the regionNavigation listener. If you follow the paper you refer to then the listener determines of the viewId is null, this a return happens. It wuld then look in the memory scope for the return value.
    Another option would be to use an object that you pass as an argument to the task flow you open in the popup. Then you change the object you passed in, which then makes the return information available in teh calling flow. The object you pass in would have to be in a shared scope too
    Frank

  • Error when launching bounded task flows in dynamic tabs from UI Shell templ

    Hello,
    could you tell me what is wrong with launching task flows in new tabs?
    I am using the UI Shell template, the task flow is bounded with one simple page (I tried with both fragments jspf and pages jsp)
    The execption is the following:
    java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to oracle.adf.view.rich.component.fragment.UIXRegion
    Here's the code I am using to launch the bounded task flow:
    private void launchActivity(String title, String taskflowId, // taskflow is something like "/WEB-INF/mytask_flow.xml"
    boolean newTab) {
    try {
    if (newTab) {
    TabContext.getCurrentInstance().addTab(title, taskflowId);
    } else {
    TabContext.getCurrentInstance().addOrSelectTab(title,
    taskflowId);
    } catch (TabContext.TabOverflowException toe) {
    toe.handleDefault();
    Root cause of ServletException.
    java.lang.ClassCastException: javax.faces.component.UIViewRoot cannot be cast to oracle.adf.view.rich.component.fragment.UIXRegion
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:105)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         Truncated. see log file for complete stacktrace

    Hi Pramod,
    Have you tried setting the Transaction attributes of your task-flow? Open up your task flow definition then go to Overview Tab. Try changing the appropriate attributes like setting the transaction as "Always Begin New Transaction" and/or unchecking the "Share data controls with calling task- flow". Try to mix settings and find the one that suit your needs.
    Regards,
    Pino

  • Bean Scope in dynamic regions

    JDeveloper Version 11.2.1.3.0
    In My Application i have one main URL Invoked Bounded Task flow and i have declared few beans in Pageflowscope in Managed Beans section of Overview tab.
    in this main task flow i have dragged and dropped other task flows as dynamic regions based on the outcome of main task flows tab actions sub task flows will be rendered. i have achieved this task and everything is working fine.
    now i want to access the page flow beans which are declared in main task-flow in this sub dynamic regions.
    how i will get the reference of that main BTF page flow scope bean in the sub-task flow ?
    Regards,
    BK

    Hi,
    you will have to pass the bean as an input parameter to the task flow. Given pageFlowScope is a large scope I suggest you change the bean scope to viewScope because this is all you need. See: http://www.oracle.com/technetwork/issue-archive/2013/13-may/o33adf-1920483.html
    Frank

  • 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

  • Error while calling DYnamic shell task flow from unbounded login activity

    Hi All,
    MY problem-Hi ,
    In my case I have alogin page in undounded task flow which calls dounded task flow.
    My bounded task flow uses dynamic tab shell.And if login is successfull user will be directed to welcome page where default welcome tab shell is open.
    When i run my application i m receving tabConetxt null pointer excetion.
    As per my knowledeg i know how to pass tab context reference from 1 task flow to other.But not sure how should i pass tab context from Login View activity to welcom taskflow
    follwing exception occurs when i click on login link
    javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    at javax.faces.webapp.UIComponentClassicTagBase.createFacet(UIComponentClassicTagBase.java:510)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:661)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
    Truncated. see log file for complete stacktrace
    Caused By: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' 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:259)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    Truncated. see log file for complete stacktrace
    ANy idea about this
    Edited by: Shubhangi m on May 27, 2010 5:31 AM

    This question was answered in: Oracle UI Shell Functional Pattern
    Edited by: Richard Wright on Jun 15, 2010 8:52 AM

  • Task Flow Run as Dialog problem - Jdev 11.1.2.4.

    We're using Jdeveloper and ADF 11.1.2.4 and have problems running task flow as dialogs(inline popup) but just on Internet Explorer(ver 8,9,10). First time when we call task flow it opens popup but dispaly error Page not found. But task flow is regulary displayed at second call, and evry other call(click on a button). And on all other browsers (Chrome, FireFox) is working normally, aswell as on 11.1.2.1 version.
    I assume that problem is that for the first time BTF is not activated, but have no idea how to solve it.
    I have found at Known Issues for 11.1.2.4 version that:
    Popup components with the childCreation attribute set to "deferred" often render blank with the first invocation. This issue arises if you use the popup component with a region and use the setPropertyListener tag to establish the activation of the region. The setPropertyListener tag with a popupFetch type will not be invoked for the initial fetch establishing the initial content delivery. This is because the markup that defines the setPropertyListener tag is defined within the popup's body. With the option to defer creating the children, the body is not processed until the first fetch for content. The popup fetch event listener (setPropertyListener) is processed in the Apply Request Values phase prior to when it is created in the Render Response phase. The workaround is to use the "popupFetchListener" method expression (PopupFetchEvent server-side event) to establish state that would have been established using the setPropertyListener.
    But still have no idea how it is connected to Run As Dialog feature of Task Flows.
    Please, help us to solve this beacuse our users mostly use IE.
    Thank you,
    Patrik

    No, there is no workaround for this.  You can open a SR and let Oracle work on this. We can't do anything about it.
    Why can't you install jdk 1.6?
    You can have more then one jdk installed on your pc.
    You can use in jdk which comes with the installation package,
    Timo

  • How to create ADF region without Task Flow

    I want to divide my page into different regions, but I don't want to have any bounded task flow under each region. I want to include Page Fragment inside the Region.
    I find the example of creating Region using some page flow, would you please help me, how to create Region that contains only page fragment, actually the problem I am facing, I don't know what I will provide in value attribute in Region tag, that is expecting some Region Model.

    Hello, RajeshBiswas.
    A solution could be to generate 'MultiTaskFlow' for indeterminate number of regions or multiple regions on the same page.
    It would be necessary to create a single file to define all participating 'TaskFlows' on page:
    1. Select 'new -> ADF Task Flow (JSF/Facelets)'
    2. May include all 'jsff' files as:
    <task-flow-definition id="genericTaskFlow1">
        <default-activity>case1</default-activity>
        <view id="case1">
          <page>/pages/case1.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
      <task-flow-definition id="genericTaskFlow2">
        <default-activity>case2</default-activity>
        <view id="case2">
          <page>/pages/case2.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    It should create a Managed Bean to implement the List of Task Flow Bindings:
    1. Create a new Class with de following code:
        private List<TaskFlowBindingAttributes> mTaskFlowBindingAttrs = new ArrayList<TaskFlowBindingAttributes>();
        public MultiRegionBean()
            TaskFlowBindingAttributes tfAttr = new TaskFlowBindingAttributes();
            tfAttr.setId("region1");
            tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow1"));
            mTaskFlowBindingAttrs.add(tfAttr);
            tfAttr = new TaskFlowBindingAttributes();
            tfAttr.setId("region2");
            tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow2"));
            mTaskFlowBindingAttrs.add(tfAttr);
        public List<TaskFlowBindingAttributes> getTaskFlowList()
            return mTaskFlowBindingAttrs;
    2. Define this new class into the 'adf-config.xml' file as Managed Bean with 'pageFlow' scope.
      <managed-bean id="__1">
        <managed-bean-name>managedBeanName</managed-bean-name>
        <managed-bean-class>className</managed-bean-class>
        <managed-bean-scope>pageFlow</managed-bean-scope>
      </managed-bean>
    At the page definition, add a MultiTaskFlow inside <executables> tag:
        <multiTaskFlow id="multiTaskFlow1" taskFlowList="#{pageFlowScope.multiRegionBean.taskFlowList}"
    On the page, insert regions in the desired locations. For example:
        <af:group id="g2">
            <af:panelAccordion id="pa1" inlineStyle="width:50%; height:400px;">
                    <af:showDetailItem text="showDetailItem 1" id="sdi1">
                    <af:region id="r1" value="#{bindings.multiTaskFlow1.taskFlowBindingList[0].regionModel}" >
                    </af:region>
                    </af:showDetailItem>
            </af:panelAccordion>
            <af:panelAccordion id="pa2" inlineStyle="width:50%;">
                    <af:showDetailItem text="showDetailItem 1" id="sdi2">
                    <af:region id="r2" value="#{bindings.multiTaskFlow1.taskFlowBindingList[1].regionModel}" >
                    </af:region>
                    </af:showDetailItem>
            </af:panelAccordion>
        </af:group>
    Reference: 21.10 Configuring a Page To Render an Unknown Number of Regions

  • Adding ADF task flow to page as region fails on first request

    Using JDeveloper 11.1.1.1.0, I've created a simple task flow that executes a method call (to set some bind variables and issue a SQL query), then forwards to a jsff page. I've then added a region to another page and dragged this task flow onto my region.
    When I run the page, I see the following in the log:
    <24-Jul-2009 14:22:29 o'clock BST> <Error> <HTTP> <BEA-101020> <[ServletContext@19304275[app:pipeline module:pipeline path:/pipeline spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:234)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         Truncated. see log file for complete stacktraceAnd the Page Loading animation continues indefinitely. If I make a second request to the same page, the same NullPointerException appears in the log but the page loads successfully. It seems that the first request from any new session doesn't complete, but subsequent requests do.
    Can anyone give me any hints about what might cause the oracle.adfinternal.view.faces.renderkit.rich.FormRenderer to throw a NullPointerException at line 234?

    Hi Branislav.
    Since I don't have the source code for oracle.adf.* and oracle.adfinternal.*, it's very difficult to do any meaningful debugging. Debugging the code that I do have access to (apache packages), appears to show that the oracle rendering class fails when it gets to closing my af:form tag. I've removed the af:form and the page is now working correctly.
    At some point I'm going to have to reinstate this form though :-\

Maybe you are looking for

  • Syncing to selected contact group wants to delete files outside of it

    Hello - I am trying to sync my iPhone contacts to my address book in a specific way. In my address book, I have my personal contacts - friends and family. I also have mailing list subscribers (which gets into the 1,000s - people with whom I am not pe

  • How do I fix bad Quality audio recording in Captivate 4

    I am having trouble recording decent quality audio in Captivate 4. What is happening is after I do the screen and audio recording when I play it back the audio is choppy. It also kind of sounds like the audio is quickly echoed and then clipped. Final

  • Ipod Touch 2G will not update!

    Ok every time I try to update my Ipod Touch 2G to the new software it goes through the process of extracting the software, and then just gives an error message that says "Itunes could not back up the ipod because the backup was corrupt or not compati

  • ODM Sample Program Run Time Errors

    I try to run Data Mining Sample programs against Oracle Sample schema data. When run Java Programs, (in all algorithms) following Exception occur when build model : --- Build Model - using cost matrix --- treeBuildTask_jdm is started, please wait. ja

  • The file reads "failed to convert from PDF to word"

    The file fails to convert to word.  What should I do?