[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

Tags: Java

Similar Questions

  • [JDev12.1.2, ADF] How do I order dynamic region by a menu bar?

    Hallo,

    I saw the video of this useful Shay https://blogs.Oracle.com/Shay/entry/adf_dynamic_regions_switching_just in which succession of dynamic region is managed by creating a "dynamic region link" for each defined workflow to display in the region.

    I would order the change of dynamic region by clicking on the menu to a menu bar items.

    What is the cleanest to achieve this way? Can I use the scope view bean managed which JDev make me create when I drag the first bounded task flows to create the region? I saw every link that I create is added to the partial triggers in the region...

    My page container (in the region) has its own bean support. To manage the region: could I convert the scope of this bean to 'see' and use it? Or is it a good practice creating a bean completely assigned to the management of the region?

    Thank you

    Federico

    Hallo

    This ADF: how to restart a taskflow menu is a good example of creating a dynamic region activated by a menu.

    Ciao,.

    Federico

  • [ADF, JDev12.1.3] af:table - how to select by program level 1 (on the updating of the table)?

    Hallo,

    I have an af:table that displays the result of a custom search form.

    I need to update the properties of some of the buttons every time that a row in the table is selected.

    I would like to handle this in a SelectionListener I associated with the table.

    public void myTableSelectionListener(SelectionEvent selectionEvent) {
      ELUtils.invokeEL("#{bindings.SearchEmployee1.collectionModel.makeCurrent}",
                       new Class[] { SelectionEvent.class },
                       new Object[] { selectionEvent });
      Row selectedRow = (Row) ELUtils.evaluateEL("#{bindings.SearchEmployees1Iterator.currentRow}");
      System.out.println(selectedRow.getAttribute("Name") + " - " + selectedRow.getAttribute("Surname"));
    }
    
    

    I noticed the System.out.println prints the values of the selected line only when the user clicks on a line while that no value does print when the grid is recharged after clicking the search button.

    To resolve this problem, I guess I need to select by program level 1 in the table whenever the grid is charged, but I have not found a working method to do this.

    You kindly explain how to select by program level 1 of an af:table?

    Thank you

    Federico

    Hi Federico
    only for research you can handle this in your action of the search button (because your selection listener code works for another action), after research get the current row of your table (it would be the first rows) and run your code

    If you are using af:query, then override default query listener to run custom code

    See -Ashish Awasthi (Jdev/ADF) Blog: the substitution of the listener default query, validation in the field of af: query-Oracle ADF

    Thank you

  • [ADF, JDev12.1.3] Why AM method cannot be exposed to the client if it does not return a simple type or serializable? How...?

    Hallo,

    I would like to know why the methods that I create in the request Module cannot be exposed to the client if they return a simple type or serializable.

    If the method returns a custom class object I solve the problem by simply writing next to the defining class "implements Serializable.

    I would like to know if it's still OK, or for a custom class with some features I really need to implement the serialization (de).

    Thank you

    Federico

    Return values must be serializable nexus him must be transported between servers and memory a store if your module gets passive

    Is normally enough tto implement the serializable interface. But in doing so you do not make the class serializable automatically. To do this, you must check if each attribute or class variable is serialized or to be transitory if they are not serialize the value.

    Timo

  • [ADF, JDev12.1.3] Why the content of a line in my af:table disappears when I select a new line?

    Hallo,

    I created an af:table like this https://community.oracle.com/servlet/JiveServlet/downloadImage/2-12620067-7140/cmnt1.png following the advice that the kind has been suggested to me by Ashish (for details, see [ADF, JDev 12.1.3] how to display multiple records on the same page... not in a table, but display a form for each record)

    When the table is loaded for the first time, it appears correctly.

    But often (not always) when I select a new line, the selected line up to become "white" and its content disappears http://digilander.libero.it/flattit82/OTN_FILES/rowDisappearing.png

    This product especially if I change the value of 1 or 2 fields contained in the line.

    If I select several lines - one after the other one - the part visible AF: table may become totally white.

    Looks like a refresh problem.

    The table is in a tab.

    If I switch to the tab, then I it again once the table appears again correctly.

    Another thing I noticed: for example 2 rows have disappeared, I select an end of line I have empty in a required field: when I select another line, the popup "this field is required" appears in the row selected previously and magically all the missing lines are coming back!

    The problem seems to be less frequent if I set the selection table = none... but it is always present.

    You could you kindly help me to solve this problem?

    Thank you

    Federico

    Hi Federico

    See I've made a few changes in your application, this problem is due to your provision

    as there are a lot of line of the grid, groups, I simple used Panel of and provision of group only

    Download the Application

    Thank you

  • Why dynamic action does not recognize a condition

    Running Apex 4.2 (build 4.2.1.00.08) on Windows 7, IE running.


    I'm trying to control the shape with.

    specifically, I have a field that I need peopled before running the main process.

    I have an alert action DA when the Condition is a PL? SQL expression, the content is - ': P16_FILE_NAME is null.


    With the empty field, it triggers the alert.


    I put text in the field and press the button that activates him DA, and it ALWAYS triggers the alert.


    I tried a celine that page just a couple of fields and a few buttons.


    Same conditions, the DA is to fire and give a warning about the presence of the Null field.


    Button 1 - DA real action1, send page, tick alert of DA real action 2.

    2 - the button submit page.

    Buttons 3 - copy of field1 in field 2, question to submit is 1 point field to return called Field2.


    If I enter a value field 1 and press the 1 button it says field1 is empty.

    If I press the 1 button once again, no other change is more, he says field1 is empty


    If I clear the field and press button 1 what he says is not empty, if I press it again it says it's empty.


    If I put something in Field1, and then press the 2 key, it does nothing except submit page.

    If I then press the 1 button it says that is not empty.

    Claire field and press the 1 button again twice and now is that it is empty again.


    Put soemthing in Field1 and press the 3 button to copy to Field2

    Press the 1 button and it says it's empty.


    The only way seems to recognize as being complete is if a send page was made in a separate order of DA.


    If the page submit that real action is in the same DA as the real action of check, it will not recognize the page submit until the second button.


    It must recognize, as shown in the session state as not empty and the field of the screen is also not empty, and yet he says it is empty.


    Anyone got any ideas on why this is?

    Dave T NZ wrote:

    With regard to the Condition of the DA, according to documentation, he said: "a condition is a small unit of logic which helps you control the display of regions, the items, tabs, and buttons, as well as execution of processes, validations and calculations."

    If the condition controls the execution of the DA.  Also, I can verify that by putting the condition ever and no more, it fires.

    No, in the case of the DAs, conditions of control if the code of DA is included in the page. In this regard DA conditions are more like "display of regions," the "execution of the process.

    Don't forget, the processes are executed in the database for the page and accept the transformation, while the DAs are executed in the browser when the rendered page in page of treatment. If the condition is not true then the code of DA is not included in the page sent to the browser, so it can never run, and it will not appear on the page until after another page show where the condition is true.

  • [ADF, JDev12.1.3] Scope of session bean: it can contain attributes related to the Value property of user interface components?

    Hallo,

    I have a defined session bean in which I put a string attribute that is bound to the Value property of an InputText in my testPage.

    public class SessionClass {
    
      private String text;
    
      public void setText(String text) {
        this.text = text;
      }
    
      public String getText() {
        return text;
      }
    }
    

    When I run the testPage, it is not displayed.

    Perhaps this kind of linking is not possible?

    Thank you

    Federico

    Never use prefix in scope to the standard servlet scopes (request, session, application)

    So it would be: #{sessionClass.text}

    Dario

  • Why an MP3 would not be able to load in the cloud?

    I got game and a few times recently an MP3 of a song created from a Youtube video is not accepted in the cloud in iTunes. I have the icon of the barred dustbin cloud. No idea why?

    Hello

    How did you convert the video to mp3? Maybe the format is not eligible.

    What bit rate is MP3? If it is less than 96 Kbps, it will be ineligible for iTunes game.

    Jim

  • Why Photoshop Mix is not written to be compatible with the Android tablets?

    I have a Samsung phone 4 Note and note 10.1 2014 tablet edition. Photoshop Mix is compatible with the 4, but not the 10.1 - why? This encourages all side loading of the APP, which is clearly not advised.

    The app opens upward to the shelves soon?

    Hi realmasters,

    So, I got official confirmation that the Mix is phone only on Android.

    :/ Sorry about that.

  • Why should I uncheck responder OCSP query servers to confirm the current validity of certificates to access the site Web of Yahoo?

    If I check the servers of responder ocsp query I get the error message sec_error_ocsp_old_response. If I uncheck that box yahoo charge very well

    Hello, can check you that your system clock is set to correct date, time, and time zone? -> time.is

  • Why new messages are not "BOLD"? SOLVED, caused by the creation of Windows fonts which had not separated "BOLD" and not "BOLD" entered

    bold text I just installed Thunderbird 24.6 on a new system running under Windows 7 64-bit. I can read and send messages, but in the component main, new messages are not "BOLD", and e-mail accounts that have new messages are not fat, either. On another Windows 7 x 64 system I don't have this problem. The add-on installed only is lightning on the new system and I started Thunderbird in safe mode, but that has not solved the problem. There is still the/unread column and it correctly displays a pip by unread emails, but I want the effect "BOLD" to return. How can I fix this?

    Problem solved. I was playing with the Windows font setting and chose a policy that did not separate entries "BOLD" and not "BOLD" (Segoe UI Semibold)

  • Why does my itouch not charge or be recognized by the computer at home

    My iPod touch has not been used for a few weeks and does not load now and when I plug it into the computer at home (Mac) he is not grateful it. The charge lead is fine when connected to another device.

    Try:

    - iOS: do not respond or does not light

    -Also try DFU mode recovery mode post-test

    How to put iPod touch / iPhone in DFU "Karthik doodles."

    -If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.

    -Try a different cable

    -Try on another computer unless the other device that connects has a lower version of iOS

    S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.

    Shop Apple Store - Genius Bar

  • Why my cursor only does not work on my taskbar, or the current window, in Windows 7?

    My cursor will work not on anything except the window I'm randomly or the taskbar

    He will do one of these:
    -Only I would like to click on stuff on the taskbar and when I put the cursor one window, it will not highlight or let me click what whether indoors, except that it will highlight reduce, restore down and out of the buttons but nothing when I click on them, and I can click right-click on the icons and choose whatever options don't appear for the programs.
    -Only allow me to things in the window, in that I currently have a click. I can communicate with anyone inside the window. If I use Google Chrome (which is the browser that I use usually) then if I click on a tab, it will be x on this tab. Nothing on the taskbar will highlight.
    Sometimes one or more of her below will be added with either of the above:
    -It will be as I have a key or something, sometimes it seems that I am now shift, sometimes ctrl, sometimes he does things that seem to do things that would happen if you took several key
    Ex: If I click on something in a program, it would produce a result that seems as if it was the result of a touch and half of a result to hold another half.
    Ex: Ex: when you play the popular game 'Minecraft' if I use a mod to give me a stack of 64, it does give me only one, as if I were a right-click instead of left. Other times when I'm in my inventory, is as I am now shift when I'm not, but it also makes things that normally occur when I hold down the SHIFT key and click.
    -My cursor is randomly as I'm left click or middle clicking.
    -I forgot something
    Resolution of the problems that I tried:
    -J' tried to withdraw using the touchpad and wireless mouse.
    -J' tried to reset my computer (it worked, but the problem is quickly returned)
    -J' I pulled up Task Manager to check some things
    After having pulled up the Task Manager, the problems stopped. but after awhile it started to come back again so I rebooted the Task Manager and it stopped again, but evertime I've done it time that the problems went got short, and now it doesn't work at all.
    -Pulled up the Task Manager and any suspect google looking for background programs (that didn't increase much info, because I have very little knowledge of what the substantive programmes should and should not work.)
    -Looked around, this site (found nothing)
    -Used A Windows virus scan and it have nothing.
    Some system info:
    Processor: Intel (r) Core (TM) 2 Duo CPU T7700 @ 2.40 GHz (2 CPUs), ~2.4GHz
    Memory: 4096 MB RAM
    Computer name: HPMANIAC
    Manufacturer: Hewlett-Packard
    Model: HP Compaq 8510p
    Operating system: Windows 7 Ultimate 32-bit (6.1, Build 7600)
    BIOS: KBC Version 71.3
    I'm sure I left out something, but I really hope that this information will help someone to help me.
    This problem started to happen after a long time using my computer, usually even less time if I let my computer alone for a few minutes
    Now they will not disappear, and pulling up the Task Manager does nothing
    (Sorry for the typos, it got really a lot of time typing and correct what I have, caused my cursor keeps clicking and screwing up my typing)

    Reinstall the driver for the touchpad or mouse wireless drivers

  • Why my computer will not go into screen saver mode, the settings are defined in law?

    Hello, I just rebuilt my computer. I run windows 7. I can't get my pc to go to screen saver mode. I run a Gforce 7800 graphics card, also

    I can't get my system to go in sleep and Hibernate, unless I do it manually. I checked all the settings and everything seemed ok.

    My drivers are all up to date. My email addy is * address email is removed from the privacy *.

    Thanks for your help,

    RSPRING

    Hello

    1 did you change on your computer?

    2. what happens when you try to change the screen saver?

    Method 1:

    Open the troubleshooter of power

    http://Windows.Microsoft.com/en-us/Windows7/open-the-power-Troubleshooter

    I suggest you to follow the steps and check.

    1.

    Open settings screen saver by clicking on the Start button, clicking Control Panel, appearanceand personalization, customization, then screensaver.

    2.

    Under screen saver, in the drop-down list, click the screen saver you want to use.

    3.

    Click Preview to see what your chosen screen saver will look like.

    4.

    Click OK.

    The screen goes black when the monitor is set to mode 'Sleep' through the Power Options.
    Here is a link to some information about your Power Options settings:

    http://windowshelp.Microsoft.com/Windows/en-us/help/495c2226-19F1-49EB-9FD8-6dd7f2c0b49e1033.mspx
    Method 2

    I suggest you follow the links and check out them.

    Sleep and extended: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/sleep-and-hibernation-frequently-asked-questions

    Turn off a computer: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-a-computer-frequently-asked-questions

    Windows 7 is not going to sleep

    http://support.Microsoft.com/kb/976877

  • Why my items do not disappear when you drag from the timeline?

    In some of my ID docs, when I drag an item to the editing table, it remains visible. In other ID docs, the item disappears as soon as it leaves the artboard. What is going on? and how to fix it?

    Mode screen thingy. Set it to 'Normal '. Problem solved.

Maybe you are looking for

  • Non-responding Palm z22

    I have a Palm z22 which I used for several years. This morning, he decided that he no longer wanted to respond to the stylus. If I use the stylus to tap or tap and hold any part of the screen, nothing happens. The buttons are always in any navigation

  • Toshiba 22L1333G - TV channel list resets after a few days

    Hello After setting my personal list of TV station for the 3rd time the re TV - sets the list of cable services provider after a few days How can I avoid this and make sure that my favorites list stays on.

  • No sound after the "Modernisation" of its CODEC

    I have a PC Enterttainment HP Pavilion dv4 - 2154 portable ca, Windows 7 operating system and after some diagnoses has been asked to upgrade the audio driver. Made, the sound of my machine became unstable and then the machine is locked. After a few h

  • Wanted: Laptop set up and screen went almost dark and frozen

    I set my laptop this morning, downloaded Security, office etc., no problem. Went to get a drink, came back and the screen is almost black with stripes running it. It does meet. Can anyone advise me because I am currently £1000 down and is not happy.

  • T400 - 6474CTO - key board problem

    All of a sudden this problem occurred: n, b, space, arrow to the top right left suddenly stopped working. Working now and then, for the most part. KB has changed; the same problem. Any clue?