Changes to engage in all dynamic regions

JDeveloper 11.1.1.6

I have a main page with 6 links dynamic region, a region and the buttons Commit / Rollback.

When I click on one of the links, a different workflow id is returned and the page fragment associated with that workflow is displayed in the region.

Each page fragment has an af:table which is based on a VO/BC.

When I try to validate a change in the fragment of the displayed page, nothing is saved.

I assume this has something to do with the scopes, but I don't know where the problem may be.

I also noticed that when I make a change (to a field in a table), click on another link and return to the first link, the change is no longer there.

What would cause validation to not see the change within the region?

Thank you.

HU,

1. What is the scope of the taskflows DC: shared or isolated?

2. do the validation button has immediate = false set?

3. where is the commit treated in the region?

4. What is the parameters of the taskflow?

5. make sure a validation before moving to an another taskflow?

Frank

Tags: Java

Similar Questions

  • Dynamic region on the change from the drop-down list of values

    Hi Experts,

    Using the concept of dynamic region, I tried to use buttons as I have 4 buttons and clicking on each button, I am loading the particular taskflow. I used setPropertyListener and type = action to achieve this.

    I have a similar requirement, but I need to use the drop down list here...

    < af:selectOneChoice value = "#{mybean.value}" >

    < f: selectItem itemLabel = "First" Valeurelement = "FirstValue" / > "

    < f: selectItem itemLabel = "Second" Valeurelement = "SecondValue" / > "

    < f: selectItem itemLabel = "Third" Valeurelement = "ThirdValue" / > "

    < f: selectItem itemLabel = "fourth" Valeurelement = "FourthValue" / > "

    < / af:selectOneChoice >

    How can I dynamically load a region on the value selected by the user on top of the data. On the change of the value in the drop-down list, I need to load this particular dynamic region

    JDeveloper version 12.1.3

    Thanks in advance.

    You use a listener to change value of the duo down and detect the region according to the new value of the duo down.

    Timo

  • 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

  • Changing the property of all the dynamically created MCs at the same time

    I have a list of dynamically created MCs.  I have this function, which works very well:

    function onLoaded(e:Event):void {
    
         xml = new XML(e.target.data);
         var il:XMLList = xml.channel.item;
         var listItems:Array = new Array();
         for (var i:uint=0; i<il.length(); i++) {
              listItems[i] = new list_item_mc();
              listItems[i].x=0;
              listItems[i].y=i*60;
              listItems[i].list_txt.text = il.description.text()[i];
              listItems[i].addEventListener(MouseEvent.CLICK, listItemClick);
              addChild(listItems[i]);
         }
         
    }
    
    function listItemClick(e:MouseEvent):void {
         e.currentTarget.list_txt.setTextFormat(highlightText);
    }
    

    However, I would like to have this setTextFormat command be run on the list_txt text box in ALL dynamically created MC any ONE of them is clicked on.


    How to achieve this?  The number of dynamically created clips may change at any time, is not a defined number.

    Thank you!

    If you declare the array listItems outside the functions, you can access in your event handler function so that you can loop through it similar to the way you already do in the onLoaded function.

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

  • Repetition, dynamic region to change items per page

    Hello

    Can anyone help on this one? I have set up a standard Recordset (page uses ASP VB) to back out of a list of products, I wanted to give the user the ability to select the number of the product illustrated per page (10, 25, 50, etc.) by using a menu field, so I changed the behavior of the repeat region so that the line now the variable of the form Repeat1__numRows = Request.Form ("itemsperpage"). It works very well, the form field says onChange and the number of products shown correctly the changes.

    The problem is that when you first load the page no product is displayed until you select a number in the form field. So, to try to get more of this I then added an onload event in the body tag to send the page but then the problem happens continuously, the page reloads, I also tried some javascript so that the page reload just once but nothing helped.

    Basically I want just an initial number of products to display when the page loads, then to be able to use the form field to allow the user to change the digit displayed per page.

    Thanks a lot if anyone has any idea how I can better achieve this objective.

    See you soon

    Set a default value would not work, the solution however came to me and seems to work OK. Here's the new code repeat region:

    < %="">< br="">Repeat1__numRows Sun < br=""> Repeat1__index Dim

    If Request.Form ("itemsperpage") = "" then < br=""> = 20 Repeat1__numRows < br=""> Else < br=""> Repeat1__numRows = Request.Form ("itemsperpage") < br=""> End if "

    Repeat1__index = 0 < br=""> rsProducts_numRows = rsProducts_numRows + Repeat1__numRows < br=""> %>

  • any button in the dynamic region you put me the default taskflow

    Hi all

    I used Oracle Adf 12 c,

    I do application with a jsf page and using Panel springboard and inside he ShowDetailItem inside static area Dynmiac area inside.

    Jsf Page > > Panel Spring Board > > view item details > > static region > > dynamic region

    the problem is when I click on the button in the dynamic region it navigate to the default taskflow.

    My problem is solved by changing the scope of the managed bean (application scope in sight).

  • Problems updating of an image in a dynamic region

    JDev 11.1.1.5 window 7 x 64 JDK 1.6_31

    I have a (capchta) image in a dynamic region with a data form and the fields.
    I use the SimpleCaptcha library (servlet) as any other image, she calls the servlet.
    The image loads and works very well as well as the audit.

    I wanted to put a button on the screen to refresh the image (get a new image essentially). (I have the sample application that does this as well).

    Problem is that I can't seem to update (AJAX) without refreshing the entire page (manually).

    I tried partial triggers (PPR) and just, they don't do anything.
    I tried using a command button and adding a refresh stripped - still nothing.
    Put it in a subform - no change.

    All items from google are updates of the region to another - not not refreshing points the same region - is there a problem with that?
    I use PPR a bit in other areas, but also stripped updates (these are all the buttons and text fields) - so I know PPR works within a region - same dynamics.
    This seems to be related to the fact that it is a picture of servlet.

    Someone there done this and can share the answer?

    How do you refresh the image... did you provide the image element to cool... its best to refresh the image Refresh parent component using addPartialTarget...
    surround the image with panelgrouplayout and refresh the component panelgrouplayout programmatically

  • Dynamic regions - which is the equivalent of 'Activity parent' - or is it?

    Hi all

    11.1.2 Jdev

    Having a little trouble with the implementation of dynamic regions vs fixed navigation taskflow.

    As I have many menu items, I want each accessed from the other, I chose to use dynamic taskflows to control the display of the region. (I originally got this fixed)

    Out in the regions, however, I want to be able to navigate in the parent. I had it works very well with fixed taskflow based navigation using relative measures, but in the parent workflow definition, my stream of results have become very complex.

    Now, I am struggling to find a way to call the managed bean call since in a region of the child (or level 2 to the bottom of the region of the child), to navigate in the parent page.


    Is there a simple way to fix this problem? I currently trying to access the management of the bean in the parent area - but do not know if this is possible.

    Help as always will be very much appreciated!

    Simo

    Hello

    parent activity does not help when the goal is to pass the content of the region. In this case, you follow the same approach as used by the model of shell dynamic tab and pass a managed bean (viewScope) of the flow of the parent reference to the flow of the region. To do this, you use an input parameter on the workflow of region. The managed bean then exposes a method to change the content displayed in the region.

    Frank

    Published by: Frank Nimphius, on May 25, 2012 07:31

  • How to publish contextual dynamic region event

    Hi Experts, please help.

    Scenario:

    I have a page saying the Page A.
    I have two stubborn workflow, say HeaderTF and LinesTF.
    HeaderTF is placed as a static region in page A and LinesTF is a dynamic region in A page.
    LinesTF has a table with the column Amount.
    HeaderTF has a text field that contains the total of the column amount.

    Requirement:

    When the user adds new lines or changes existing lines or deletes the lines in LinesTF, it suits to update total field in HeaderTF.

    On the evolution of the value of the sum in lines, I'm calculating and updating the total attribute of header VO all share same DC.
    but the value is non-reflecting because partial triggers can be maintained for the total field.

    So I use contextual events.

    I created a contextual events for the amount field, delete button and table as well (in LinesTF).
    and I created method handler AM that calculates the total and dragged like a text field in HeaderTF.
    Now when I try to subscribe to pageA pagedef, I am able to find the manager who is created in HeaderTF but could not find any contextual event in event lov.

    Question:
    1 is. my approach correct?
    2 cant publish us contextual events of dynamic regions?
    3. is there another way to do this?

    I wasn't refreshing HeaderTF passing the entry params because I don't want the whole region to be updated.

    Try to create the mapping of events - please see "How to Create Contextual events manually 28.7.2" in Guide of Dev http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI

  • Panel by tabs within the dynamic region

    Hello world

    I have 3 dynamic region, each region has a panel with tabs by pressing the page the first book of the region very well when to navigate between tabs (af:showDetailItem), the second region it does ' t work when navigate between tabs is like opening frozen just first tab (af:showDetailItem) and the same with the third region?

    any help?

    I use JDev 11.1.1.3.0

    Hello

    the managed bean that keeps the dynamic region TaskFlowId is within the scope of default backup bean. Change the scope of the viewScope bean and also change all EL references to the bean accordingly (on the page and the binding of workflow in the PageDef file)

    Frank

  • Taskflow and dynamic region

    Hi all

    I use taskflow and dynamic region.

    When the user click on one of the links on the home page. My taskflow will change at different taskflow and do the operation.

    lets say when user click on the same link on home page, I want to refresh the taskflow and I want to start do default activity operation.

    now my problem is when the user clicks a different home page link, it go to different taskflow and operating activity by default.

    but when the user clicks on the same link, it won't make the operation of the default activity.

    I think it means that it is not refresh taskflow.

    is it possible to refresh the taskflow programmatically?

    with respect,
    WP

    Link your dynamic region to your managed bean and

    In the link that you change the region to:

    dynamicRegion.refresh (FacesContext.getCurrentInstance ());

  • How to assign components page parent of a page fragment in a dynamic region

    Hi, I am using JDeveloper 12.1.3. I have a single page request that contains a sidebar (with separator) on the left and a dynamic region on the right. One of the fragments of the page that appears in this dynamic region has a task flow that calls another fragment of page. What I do when this event occurs, it is to dynamically hide (or at least close) the left side panel. I created a bean of support that includes a method to do so. This method works very well when I call it from a test button on the parent page. But I can't understand how effectively call it a method in my stubborn workflow (page fragment). I created the method and incorporated it in the workflow. I refer to the method in the bean support. No errors are generated when I perform the navigation. I have debugging instructions that indicate support bean method is called. But the screen will not reflect the changes on the side panel. I tried to use a parent action in my stubborn workflow (and tried to have this action relative to call the method), but that did not help. I thank you very much for any assistance, you can provide.

    The problem is that you can reach the panelSplitter of off the page on which it is located. If you use a methodcall activity that you call with a parent action you get a new instance of the separator, but not then, you try to change.

    What you can try to bind the separator to a property of bean a bean view extended who resides in the workflow of the parent page. Then you pass this bean as a parameter to the flow of the task of the fragment and call the method within the bean. It of called bean reference and is listed in this article by Frank Oracle ADF May / June 2013. Make sure that you use a component for the bean property reference. On second thought, you might not even to bind the separator to the bean as you can look it up in the page directly using findComponent().

    Timo

  • 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

  • [ADF, JDev12.1.3] Why dynamic region is not spend if I re - call the currently displayed workflow?

    Hallo,

    I have a page with a dynamic region that is managed by a range backingBean bean.

    Functions "startBtf...". "are called when a menu item is clicked.

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    Thank you

    Federico

    public class MainDynamicRegion {
      private HashMap parameters = new HashMap();
    
      public MainDynamicRegion() {
      }
    
      public TaskFlowId getDynamicTaskFlowId() {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        String currentTaskflowId = (String) adfFacesContext.getPageFlowScope().get("CurrentTaskflowId");
        if (currentTaskflowId == null || currentTaskflowId.trim().equals("") == true) {
          currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
          }
        return TaskFlowId.parse(currentTaskflowId);
      }
    
      private void setCurrentTaskflowId(String currentTaskflowId) {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        adfFacesContext.getPageFlowScope().put("CurrentTaskflowId", currentTaskflowId);
      }
    
      public void startBtf1(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-1.xml#btf-1");
        this.parameters.clear();
      }
    
      public void startBtf2(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-2.xml#btf-2");
        this.parameters.clear();
      }
    
      public void startBtf3_Search(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "S");
      }
    
      public void startBtf3_Create(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "C");
      }
    
      public void setParameters(HashMap parameters) {
        this.parameters = parameters;
      }
    
      public HashMap getParameters() {
        return parameters;
      }
    }
    

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    You call the taskflow even without leaving the previous.

    To update the workflow, you have several options:

    -Give taskflow refresh 'ifNeeded' parameter and change the value of the input parameter (unfortunately, it is not applicable to your usecase because you use the parameter mapping and not point settings so setting change cannot be detected)

    -use the property RefreshCondition

    For more details, see: 23 by using task flows in regions (12 c (12.1.3))

    BTW,

    currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
    

    Instead, you can change the return type for getDynamicTaskFlowId() to a string and use an empty string ("" ") instead of emptying the BTF (and in this case you don't need even of TaskFlowId.parse (part)).

    Dario

Maybe you are looking for