Dynamic region: task flow interfering with eachother

JDeveloper 11.1.1.6

I followed the tutorial of Shay on dynamic regions: https://blogs.oracle.com/shay/entry/adf_dynamic_regions_switching_just

I then added create/edit buttons at the bottom of the departments and the pages of the employee.

I added the control flow in the workflow to create and edit actions, they must go to another page containing an ADF form to create or edit a Department or employee.

It works fine for departments, if you click on create in the departments table, and then you get to create a new Department.

The problem is for employees, when you click on create, updates of the region and the departments table shows yet once, instead of display the employee update page.

I think it's a question of scope, but I don't know what I should check or how to debug this.

Any tips? Thank you.

What effect have you bean where the taskflowIs is stored in?

It should be at least within sight. If you have created is as in the tutorial, it is created in the scope of the request.

Open the adfc-config. XML in preview mode, and then select the managed bean section. Select the bean, then change the scope to display. Then try again.

Timo

Tags: Java

Similar Questions

  • Restart the task flow

    In a page, I have several components af:selectOneChoice, below which is a dynamic region (whose flow confined task based on the selected values). It works very well, on this day, leading to a change in a box selection in the appropriate workflow being shown. The new workflow starts automatically at step by default, which is great. However, I need to be able to "restart" the currently active workflow with a button.

    Is there a simple way to restart the workflow of a region? The region is already using Refresh = 'ifNeeded' as a change in one of the boxes of selection changes one of the params region. However, the user can be on another step in the taskflow, and I want a quick way to get back them at the beginning.

    I have a solution (based on the ' [ADF area Interaction | http://www.oracle.com/technology/products/adf/patterns/11/ADFRegionInteraction.pdf] ' white paper) that calls the region.queueActionEventInRegion method, but the problem I have with it is that I prefer not to force each subflow for navigation "startOver". The other problem is that my area has also a navigation receiver that hides the selection boxes when a navigation leaves the start page in the region takes place; When the "SystemRoot" region is specified, queue navigation occurs and my triggers of the listener, hide the fields select immediately. I have to kludge my code to prevent this.

    In short, there is no quick way to restart the flow of current, similar to how it works when replace you in an another taskflow?

    Thank you
    Barry

    Hello

    Try this

    DCTaskFlowBinding tf = (DCTaskFlowBinding)JSFUtils.resolveExpression("#{bindings.myRegion1}"); // or any other way to get to the region
    tf.getRegionModel().refresh(FacesContext.getCurrentInstance());
    

    Pedja

  • Dynamic region with several task page fragment flow isn't refreshing VO

    JDeveloper version is 12.1.3 and Weblogic Server is 12.1.3.

    We have a dynamic region with several task page fragment flow.  We have created a menu that will open on the workflow task in the dynamic region. Before defining the workflow id in the bean, we execute query on the original Version after setting the bind variable. When we click on the menu is open the flow of relevant tasks in the region and showing the Original data table.

    But when we open the same request again to a different browser session, it shows all the data in the original Version when the user clicks on the relevant menu item...

    I have attached the code used to navigate to the different workflow tasks written in the bean from the back of the home page.

    We have no idea why anyone what happens, if it's a server problem or a code issue. Because unless and until we open the target application in a new browser it works fine.

    We tried and deployed on a remote server as well, but it gives the same question...

    Would be really grateful for the help...

    The user, the code you posted has some serious problems. Never, I repeat never store a reference to an application module in a static variable in a bean. That is why you see only data once. After that, the second session reuses the application module from the first to the configuration data, but to display data it uses a module different application.

    The way you try to configuration data is too bad. You must pass the parameters to the workflow and init data in the default action of the workflow instead of doing before installing the new workflow id. A workflow is a unit of work that is kind of a black box. You may not assume that the stuff you do outside of this black box can be seen inside the box. This is only true if the workflow share the same control of data as it's parent (share of data control).

    I suggest you read some documents on the workflow and how they work. A good start is to look at this video https://www.youtube.com/watch?v=A3CmDhWHaG0

    or work through this tutorial 12 c (12.1.3) Oracle JDeveloper tutorials - working with bounded task flows, regions and routers

    Timo

  • problem on the flow of tasks of adf and dynamic region

    JDeveloper 11.1.1.5

    I created a page jspx for making fun of the home page.

    In the facet of the beginning, there are 2 Ref order link in the region (for the 2 workflow)
    In the facet of the Center, there is a dynamic region. Once you click on the order link, the region will be changed.

    The problem is:

    the workflow has 3 displays (View1-> 2-> the View3), if I run mode 2, when I click on the link even in the facet of the beginning, it does not refer to the View1.

    I want the page back to View1 when I click the link, how can I apply?

    Hello

    You must reload the region to start again. To do this, you can assign to the refreshCondition for connection of the region, in such a way that when it is resolved to true, the region will be reset. No doubt, you can add a parameter to the region and set its value through setActionListener for the click on the link.

    Check this: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm#CHDEIFBB

    Arun-

  • Trade flow of tasks in a dynamic region of menuitem in the menu bar

    Hello

    I have a dynamic region and two workflows. I have headphones action switch workflows in dynamic regions. When these listeners to action are related to the keys, everything works as expected, but if I attach to menuitems in a menu bar, while the listener is executed (based on the debug log file), the workflow in the region does not change.

    Can someone please give me an idea why, and exactly how someone can exchange a workflow in a dynamic region of a menuitem.

    I use Jdeveloper 11.1.1.0.1

    Thank you

    Published by: fakintoy on April 22, 2009 15:45

    Published by: fakintoy on April 22, 2009 15:46

    Published by: fakintoy on April 22, 2009 16:06

    Hello

    My guess is that the region is not added to the list of partial objectives. Add a partialTrigger on the region pointing to the menu item.

    p.s. The Code snippet would be really helpful to get a more precise answer here

    Kind regards

    ~ Simon

  • Train does not not as expected with dynamic regions

    JDeveloper version - 11.1.1.7.0

    I created an application with 2 workflow with 3 defined fragments like a train. These workflows is deleted a page like dynamic regions. On the page running, in the first region the train works fine. But access to the second region, when I click on the 2nd train stop, the train navigates to the first fragment of the first step.

    Note: I also created a test application, it was the replication.

    I looked at your code and found the problem. The bean that you can switch regions is defined in the scope of evil. The TrainDynamicBean must be set in viewScope at least. If you set it in a scope less (backingBean or application) the bean is generated for each request. If you go to region 2 the bean is created again for the next request, and the taskflowid points again to flow available1. This is the reason why you see the view4 when you switch to flow2 but view5 clicking on flow available1.

    It is a problem.when known and documented, working with dynamic regions. JDev creates the bean in the wrong scope, and you have to take it at least viewScope.

    Timo

  • ADF 11.1.1.7: Control a dynamic region of JSP with a SelectOneChoice

    Hello user community:

    I have a need to understand How to control content within a dynamic on a JSP page region.  In the JSP page content within the dynamic region is determined by a selectOneChoice drop-down list presented to users...  I have spent hours of research and cannot identify the exact procedure for this process.   Please point me in the right direction. I look forward to any input provided.

    Here is my scenario:

    1. users will select a TransactionType in a drop-down list.
    2. According to the selection selectOneChoice the loading of a page of .jsff within the dynamic region.

    Details of the background:

    • I have a dashboard for the details of the Transaction.  This is the JSP page.
    • I have 18 Transaction_Detail fragments of page based on your that take advantage of bind variables & discovers the criteria.  Here are the pages JSFF '.



    I want the JSP page to control what JSFF page is loaded in the menu-driven selection of users drop-down.  I found a simplistic example of this ability in blog of Zeeshan Baig.  However, the logic command what JSFF page is loaded if... otherwise based, and using a workflow IDs.  I can use the flow ID of the task, but I only need 1 page JSFF responsible.


    Thank you very much!

    TreeStrepek

    What you describe is a simple switch of dynamic regions. Watch the video of Shay https://www.youtube.com/watch?v=gNipIBn5Zv0

    Instead use the links to the selected region, you put the id of the workflow in a list that you put on a LOV. When you select a new value LOV the region moves.

    Timo

  • XmlMenuModel cannot be used with bounded task flows

    My project need to use the navigation menu, and use with XmlMenuModel. But I know that use only with the unlimited workflow (can't go with the flow of tasks defined ADF)

    Can anyone explain to me why this problem exists?

    Thank you very much for the support.

    Hello

    This is because the model XML Menu navigates pages and not the task flow. The menu Menu XML, to give you a historical reason why, as developed by the open source Apache MyFaces Trinidad and here there is no bounded workflows. The implementation of the adfc - config.xml xml menu under uses the API provided by Trinidad. In stubborn workflows, view view navigation is done by train stops configured in the stubborn workflow. So you can say that the menu XML template only works for the top-level pages and top-level pages should be defined in the unlimited workflow.

    So for your use case work, you set pages in the unlimited workflow, and then add the workflow bounded as a region (if the region is the only child of a page, then the impression is that it is in fact a page without terminals and not a workflow). In this way, you can implement your design goal.

    Hope this helps

    Frank

  • How not to use no connection DB App with task flows created as 'New deal'

    Hello

    My request is entirely dependent on the Custom java datasource implementation and don't requires no connection DB at all. I made the necessary implementation (http://andrejusb.blogspot.in/2012/03/use-case-for-adf-bc-with-no-database.html) by creating CustomDatabaseConnectionStrategy that says
        @Override
        public ApplicationModule createApplicationModule(Hashtable env) {
          env.put(Configuration.DB_REQUIRES_CONNECTION,Boolean.FALSE);
          env.put(PropertyMetadata.ENV_DO_FAILOVER.pName, PropertyConstants.FALSE);
          return super.createApplicationModule(env);
        }
    My application works great until I have keep my transaction flow of task as "Operation No. Controller. Yes, I use the shell dynamic tab as UI model. But when I keep it as "Begin a new Transaction" and not to share control of data, the screen is not for all. I get an exception (I assume that when I try to open the workflow, he tries to get the connection. Since there is no connection available, it gives me this error. What then?)

    One of my requirement of customer is to open the screen even under multiple tabs as a screen of costs (i.e. with different transactions. "We do a transaction via Tuxedo transaction server). If I load a screen under the first tab with some data, added a few record, deleted records... and if I load the same screen on another tab, it should not refelect the same given what I have under the first tab.


    Requirement:

    I have no DB connection in my application. But I should be able to define the task flow to open with the new instance of the Application module whenever it is open.

    Your help on this would be appreciated.

    Rambeau

    If I understand correctly you requirements, you don't need transactions taskflow-ADF, but you just need to charge DataControls. If this is the case, you don't have to set the behavior of the taskflow transaction to "Always start with new Transaction" (e.g. keep it to 'No controller Transaction'), but the value of the "isolated" DataControl framework (e.g. uncheck the box "Share the data with the calling workflow controls" in the property inspector of the taskflow). In this case each instance taskflow starts in a different frame of DataControl (e.g. it will instantiate its own set of ApplicationModule instances).

    Dimitar

  • Please HELP * problem with dynamic regions ADF...

    Hello

    I have 2 separate workflow in my application. 'Search-user-flow' & 'create-user-flow. I got to view these feeds in my main application (home) as a dynamic region with 2 dynamic links.

    My page main split into two panels where I suppose to display dynamic links on the left side and the workflow right. Want to display the default search feeds loading the home page, and when I click on the link for the user to create, create flow must be exposed to the right side. Please help me how to do the same. I was halfway through the path, but not totally.

    Here's what I've done so far.

    Step 1) creation research-user-flow (this stream were only page fragments not pages)
    Step 2) created create-user-flow (this stream were only page fragments not pages)
    Step 3) slide / move the search-user-flow in right panel of the main page as dynamic and created new "searchFlow" managed bean and the same card.
    -(After this stage, the main research stream fragment appears in my main page)
    -(Managed bean created taskID entry and the method)

    Step 4) slide / move the create-user-flow to the left side panel as dynamic link.
    Step 5) slide / move in the research-user-flow for left side panel as dynamic link.

    During the loading of my main page, I could see 2 dynamic links in the Panel left side and 1 flow to the right side panel. Now when I click on the Create User link, it's pass the stream and display the stream of the 2nd on the right. So far so good. Now, if I hit any link here after an error. Please help me how to solve this problem and make the works of dynamic region. It is really urgent and fight with past 4 days...

    Thank you
    klogube

    Hello

    define the scope of the bean managed bean that passes the workflow to a wider scope than requestScope: viewScope, pageFlowScope...

    Frank

  • Problem with the identification of the Train in a dynamic region

    Hello

    I have a two task flows (firstflow, secondflow) and they both have their own individual trains and they are all fragments of the page. Then I have my main page, where I have created a dynamic region based on secondflow. Then, on the same page, I have links dynamic region for firstflow and secondflow. When I run the application I consult first the second rate and his train. Now, when I click on the link firstflow. the page is displayed, then when I click on the train, it then goes to the secondflow and his train, I can't navigte in the firstflow and his train. Please let me know any solution to this. Thank you.

    Hi Baro,

    Can you please try again, after you set the scope property of the managed bean that stores region Dynamics-flow-id of the task to the 'session' instead of 'query' in the adfc-config file. XML?

    Kind regards
    Chetan

  • Hello all, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    . Hello everyone, I need help with creating a dynamic region in jdeveloper 11.1.2.3 version

    What JDK you are using?

    You are probably using an old version of the JDK, that class while compiled under JDK 1.7.0

    http://java67.blogspot.com/2012/10/how-to-fix-javalangunsupportedclassversionerror-major-minor-version-49-50-51.html

    For example, work with the correct version, and it will be fine...

  • What's wrong with the dynamic region within the static region

    Hi all

    I use Jdeveloper 12 c

    I do app with a jsf page (man.jsf) contains the static region (xxx.jsff)

    the static region contains a dynamic region and I define the scope in the tent (adfc-config) (backingbean extended, scope of the request, see scope)

    the result is main.jsf is empty

    hand. JSF > > xxx.jsff (static region) > > bb.jsff (dynamic region)

    http://127.0.0.1:7101/face/hand? _afrLoop =

    What is the solution for this problem.

    Hello

    Actually the managed bean used by the static region should be extended to at least view. The managed bean should be defined in the configuration of the workflow of the static region.

    Frank

  • With dynamic region ADF runtime errors

    I use a dynamic region in my web project. I use JDev 11.1.1.3 and use the built in weblogic server.
    Things work very well and I do not see the dynamic region work perfect.

    My colleague does not Jdev/Weblogic. It uses another IDE and run the build script to deploy the project to a single weblogic server.
    But there is no ADF faces DURATION 11.1.1.3 installed on its box.

    He sees the error when accessing the page with dynamic region below. Guidance as to what might be missing here?

    < WARNING > < oracle.adf.view.rich.component.fragment.UIXRegion > < BEA-000000 > <
    java.lang.IllegalStateException: the expression "#{bindings.dynamicRegion1.regionModel}" (which has been specified for the region
    Odel attribute "value" component of the region with the id "r1") evaluated to null.
    This is usually due to an error in the configuration of the objects referred to by this term.
    If it helps, the expression "#{bindings.dynamicRegion1} ' value 'null '.
    If it helps, the expression "#{bindings} ' value 'null '. Now using a RegionModel empty instead.
    at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:439)
    at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:109)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag10(__forecasteradmin_jspx.java:572)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag6(__forecasteradmin_jspx.java:406)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag5(__forecasteradmin_jspx.java:351)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag4(__forecasteradmin_jspx.java:307)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag3(__forecasteradmin_jspx.java:256)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag2(__forecasteradmin_jspx.java:205)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag1(__forecasteradmin_jspx.java:154)
    at jsp_servlet.__forecasteradmin_jspx._jspx___tag0(__forecasteradmin_jspx.java:104)
    at jsp_servlet.__forecasteradmin_jspx._jspService(__forecasteradmin_jspx.java:65)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    to 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:292)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    to org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$ OverrideDispatch.dispatch (FacesContextFactor
    Impl.Java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    to 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:292)
    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:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.epm.forecaster.view.filter.ForecasterSessionExpiryFilter.doFilter(ForecasterSessionExpiryFilter.java:52)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:4
    0)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:4
    0)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
    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)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hello

    + <>
    + java.lang.IllegalStateException: the expression "#{bindings.dynamicRegion1.regionModel}" (which has been specified for the region +)
    + the odel 'value' attribute of the component of the region with the id "r1") evaluated to null. +
    + It is usually due to an error in the configuration of the objects referred to by this term. +
    + If it helps, the expression "#{bindings.dynamicRegion1} ' value 'null '. +
    + If it helps, the expression "#{bindings} ' value 'null '. Now using a RegionModel empty instead. +

    Seems that the link layer is not configured. The call is correct? Web.xml file has defined binding filter?

    Frank

  • Changes in validation ADF dynamic region on swap of the region

    Hello

    I use JDeveloper 12.1.3

    In my application, we have a single page with a dynamic region. By clicking on the buttons of the region cools in a new page (a typical behavior of the dynamic region).

    However, I have a question asking the user to commit changes in a page before moving out of the region. Is there a standard way to solve this problem?

    To add to the question, if there are 5 (for example) regions with 5 buttons, each in the region is filled with a shared library.

    Help, please.

    Thank you

    Kamal

    See if this post helps you: Andrejus Baranovskis Blog: integration into Oracle ADF with ADF task flows and dynamic regions pending changes

Maybe you are looking for