How to call the taskflow or bean method after returning from operational-stream-call activity.

I use JDev 11.1.2.4.0.

Here is my scenario:

A page contains a table with a button 'Add' called a popup.  The popup has controls to select data and save/Cancel buttons.  The Save button calls a managed bean method will add a line to the iterator in the table is built on.  I'd like the table to refresh the closure of the pop-up window.

This is how I implemented it:

I have taskflow1 that contains an activity view (page1).  Page 1, I have a button that calls managedBean1.method1 () who does a job and returns a result of 'showpopup '.  ShowPopup goes to a task-flows-call activity, called taskflow2.  Taskflow2 has a point of view (page 2, which is presented as a popup) activity and a return.   I want to call a method in managedBean1 to refresh the table once the popup is closed and I can't understand the right way to do it.

After writing this I wonder if I should create the popup in the calling page rather than creating a separate workflow.  I started with a separate workflow because the popup is a quite complex.

Thanks for help.

Rudy

Add a listener to return the button 'Add '. It will be called by ADF Faces upon return of the taskflow. For example:

useWindow = "true" windowWidth = "600" windowHeight = "400".

action = "#{MyBean.Method1} '"

returnListener = "#{MyBean.myReturnListener}" / >

And the bean method:

public void myReturnListener (ReturnEvent returnEvent)

{

Do something, for example to update the table on the screen

AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable);

}

NB. don't forget to mark the taskflow call activity to 'run as dialog '.

If you need the taskflow return result, you can get it in the earpiece to return via the method ReturnEvent.getReturnValue ().

Dimitar

Tags: Java

Similar Questions

  • Satellite P850-30W - the fan does not work after returning from the mode "Eve"

    I have a Toshiba Satellite P850 30W with bios 1.90.

    Sometimes the fan does not work at all after back mode standby on windows 7.
    What happened twice (perhaps several times without knowing me), and Ive had the computers for a month.

    Normally the fan starts to run when the CPU gets more than 50 degrees celsius and stops less than 50 celisus...

    I tried running Prime95 when this fan-this occurs and the time of the computer got dangerously high (near 100 degrees)! the fan did not start at all
    .. .This error could damage the laptop potentinally...
    to get the fan turns once again I have to restart windows

    anyone experienced this?
    I guess that the fix would be to never use standby... or toshiba needs to fix it with an update of the bios.

    > Sometimes the fan does not work at all after back mode standby on windows 7.
    > What has happened twice (perhaps several times without knowing me), and Ive had the computers for a month.

    You said it's happened twice and only sometimes done this means that above all the fans are working well?
    In this case, this would mean that it of difficult to reproduce this problem, but you might be right: maybe a BIOS update would help solve this problem permanently

    I found some discussions on the stand-by mode and fan activity and in most cases, the update of the BIOS was the key.

  • How to send the student card to activate my acrobat from Adobe pro ED program?

    How to send the student card to activate my acrobat from Adobe pro ED program? It is uncomfortable!

    Redemption Code https://creative.adobe.com/educard

    Proof of ID http://www.adobe.com/store/au_edu/academic_id.html

  • How to create the shape layer in Adobe after effects Cs2?

    How to create the shape layer in Adobe after effects Cs2?

    There is no such thing. Shape layers were introduced in CS3.

    MYlenium

  • How to add the shape layer in Adobe after effects Cs2?

    How to add the shape layer in Adobe after effects Cs2?

    You upgrade. You're still too early for shape layers.

  • How to perform the tasks of bean to manage workflow action

    Hello

    I have a button that, when clicked, it will define a parameter and then perform some action in the workflow.

    So, I have in the page
    < af:commandButton text = "Post" id = "cb1".
    action = "#{backing_Aaa.Edit}" / > "

    < af:commandButton text = "Create" id = "cb2".
    action = "#{backing_Aaa.Create} '"
    actionListener = "#{bindings." CreateInsert.execute}.
    / >



    In the Aaa bean:

    Method of chains; link to the entry workflow parameter

    public String edit() {}
    This.Method = "Edit";

    How do I need to run the 'goToNextStep' defined in the workflow, action?

    Returns a null value.
    }


    public String create() {}
    This.Method = "Create";

    How do I need to run the 'goToNextStep' defined in the workflow, action?

    Returns a null value.
    }



    How to do this?


    Basiclly, I need to pass an inputparameter with a different value to the next view when I click on the different button


    Thank you.

    Hello

    Try

    FacesContext context = FacesContext.getCurrentInstance();
    NavigationHandler handler = context.getApplication().getNavigationHandler();
    handler.handleNavigation(context, null, outcome);
    context.renderResponse();
    

    Kind regards

    ~ Simon

  • How to reset the shared folders, showing network after modified/deleted folder

    System: Windows Vista 64-bit

    Problem: after files moved or modified, they persist in network folder, for example:\\my-pc\

    It seems that their ghosts never die. Even when I put the file back to what was before, they are not accessible, and read error message, "you might not have permission to use this network resource...". »

    They are listed under ' computer management > shared folders > actions ", but I can't delete them or change them.

    Why there is no easy way I can change the shared folders?

    answer: * e-mail address is removed from the privacy *.

    The only way I found to clean these entries is to use Regedit to edit the registry.  First the standard warning from Microsoft:

    ----------------
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows
    ----------------
    To resolve this issue, on the server, start Regedit (start-> Run-> 'regedit'), and then navigate to the following key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares
    Can find stocks that no longer exist in the right window. One at a time click once above and press 'delete '.
    Close Regedit
    Restart the computer.
    HTH,
    JW
  • How to upgrade the height of a field after painting?

    Hello world!

    Here's my question: I implement my own domain with the following components:

    A text which may be multi-line

    A second text which may be multi-line

    An image with a fixed height (80px)

    When the getPreferredHeight() substitution, I don't know the future height of my area (which depends on the multiline settings). So I would update the height of my field after the painting process, while it takes only the necessary height.

    How is it possible to do?

    Thank you in advance.

    OK, I did so using a prepareLayout() method in the constructor as computs the width and height of the next field.

  • How I change the fonts and colors of default return?

    I changed the font and the color of the text through the Tools button and the button options and the tab content. I can't find anything tell me how to change the fonts and colors to the colors and fonts by default. Can you advise me? I use Windows 7 Home Premium OS. Thank you.

    Hi Brenda19605,

    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a & s = do & r = 0 & s = as

    The default settings for the police are in this article:
    https://support.Mozilla.org/en-us/KB/some%20text%20shows%20up%20bold%20after%20upgrade

    Unfortunately for the default color has no good reference. For the text, but it is black (most lower-left), the background is white (color above left). Unvisited links is blue (column 8, line 5) and the visited link is purple (column 9, line 5).

    Let me know if you need help more!

    Lordfreak

  • How to enable the function keys beats again after the upgrade of the OS?

    How to activate the function of key Beats again after an upgrade of the OS which is Windows 7 Ultimate 32 bit, I use HP Mini 210-4000

    Stealth,

    The combination of bat function keys is

    FN + b

    as stated in your Quick Start Guide

    Chapter 1, Page 2

    The Guide:

    Beats Audio is an improved audio profile that offers a deep, controlled all low by maintaining a
    Crystal clear sound. Beats Audio is enabled by default.
    ▲ To enable or disable the Beats Audio, press fn + b.
    Select Start > Control Panel > hardware and sound > Beats Audio

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    If you are having problems with the audio works as it should, you may have to (re) install the drivers from the website of your laptop.

    There are actually two different models in the category of 210-4000 Mini.

    Start here to the Support and drivers

    • Select the model entry that corresponds to your laptop.
    • Go to Software and Driver Downloads
    • Select your operating system (Windows 7, 32-bit), and then click "Next".
    • Scroll down
    • The Audio driver is the first category...
    • Download the package, pay attention to where it is saved.

    Given that you just upgraded (probably from Vista?), you may need to update some other software too.  Go through the different categories and see if you need / want any of the other packages.  Most of them can be added 'above' of what you already have on the system.  If you must delete something, the program will inform you when you try to install the new version.

    • If you have control of "Admin", we can highlight the package and "double-click" to install, if not right click, select "Run as Administrator" and install.

    For Audio driver... After you update / install the driver, reboot your computer.  After that, you should have your software Beats back.  If no joy yet, go back and get the software Quick Launch bar of your website (heading Software Solutions) and install it...

    Good luck!

    ----------------------------------------------------------------------------------------------------------

    Click on the star of white Kudos on the left to give Kudos for assistance.

    Please click "accept as Solution" to say the problem is solved.

    Always include: (Computer) product number , printer - model number ,.

    Never give your serial number

    ----------------------------------------------------------------------------------------------------------------

    2012 the year of the Dragon!

  • How to disable the option for children to receive messages from my iPhone on their iPhones?

    How to disable the option for my children to receive my iPhone imesages on their iPhones?

    Do not share account iCloud with them. iCloud accounts are not meant to be shared.

  • How to filter the traces of tension TDMS after acquisition?

    Simple question. We have acquired a lot of electrophysiological data with express signal. We now need to filter data after the acquisition for later analysis. I can import the files TDMS tension of previous experiences, but can't seem to run the filters we used on the side of the acquisition to filter the existing traces. Is there a simple way to do this?

    -smb

    Hello Chinchilla,

    I enclose a few screenshots on how to add a step to an analog input filtering. You can select the type of filter and order too.

    In this screenshot you can check how to change the configuration of the filter

    Finally, you can access the TDMS of LabVIEW file with one of the examples of PDM. Please follow these instructions:

    1. open LabVIEW

    2 - go to help > find examples to open the Finder 'example '.

    3 - Go to Fundamentals > file Input and Output > TDMS > Standard Read and Write and select the VI named TDMS read Events.vi

    You will need to know the data present in the file to read correctly. For this, you can use the leading PDM Viewer VI:

    http://zone.NI.com/reference/en-XX/help/371361K-01/Glang/tdms_file_viewer/

    Or you can use the Toolbox for excel: http://www.ni.com/example/27944/en/ (allows you to transfer the data to Microsoft Excel).

    4. After reviewing the data, you will need to apply a filter. You can find the filter functions in the range of Signal Processing.

    Please let me know if you have any questions on this subject.

    Kind regards

  • How to get the drivers and files lost after you have reinstalled Windows XP

    Message: How to recover documents Word and Audio drivers after reinstalling Windows XP on the computer.

    Operating system: Windows XP

    Exactly how is that did you reinstall Windows.

    Your "reinstall Windows" had formatting of the disk (i.e., a "clean install") or restore the computer to its state of "cost-of-the-factory '?  If so, your documents and other files are essentially disappeared (possibly recoverable at great expense by using a Drive Savers).

    If you don't reformat or use a "recovery partition" (that is, you did a "repair" install), then it is possible that your data may be recoverable.  More you continue to use the computer, however, over the likelihood that the data is unrecoverable.

  • ENVY 5540 All - In - One Printer: how to change the password want TO 5540 WIFI Direct from HP default to a different password?

    I try the functions on my new 5540 ENVY. Everything is set up and working correctly so far. I just printed a document from my iPad using the WIFI Direct function on the printer successfully. However, the default password on the printer for the WIFI Direct is simply "12345678". Surely, it should be replaced by a more secure password. My friend something printed its iPad - so obviously, this password is not exclusive to me, anyone can print stuff on my printer just for fun and I have a lot of students around me, the problem could become expensive for me and very boring. WIFI Direct signal covers a distance. I contacted HP telephone support, but the process is time consuming and I had to hang up because I had to work. Maybe someone here could give me instructions, and I can change the password when I have free time. I use wifi for internet (cable ethernet only) and the printer connected via USB to the computer. Also, when I turn on my computer (BUT NOT THE ROUTER) on the wireless function, the printer is and what I need to do is enter "12345678" and start printing. There is no guarantee either. Can someone tell me how to change the password for WIFI Direct 5540 envy? Thank you.

    I'm sure that you can change the EWS web page for your printer.

  • How to lock the moniter keep resoultions settings after reboot?

    How to lock the screen to keep resolutions settings after reboot?

    Hello

    Thanks for posting your query in Microsoft Community and my apologies for the late reply.

    • Have you noticed a Windows Update, the installation of the video drivers?

    See the Windows updates are installed
    http://Windows.Microsoft.com/en-us/Windows7/see-which-Windows-updates-are-installed

    Possible reason for this behavior:
    I suspect that a third-party application to start conflicts and it translates into changing the resolution. Once you got the correct resolution after re-installing the drivers set the computer to clean up state of startup and then check if the resolution changes. In this way, we can use the approach 50 / 50 to find contradictory application the cause.

    How to find the conflicting application:

    See the article below for instructions on how to start your computer in a clean boot state. How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.

    Similar was also mentioned in the thread below; in this case, the webcam software was causing the conflict.
    http://social.answers.Microsoft.com/forums/en-us/w7desktop/thread/7bb77d00-8ac0-4d9e-b7a3-7646b9cc1083

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

Maybe you are looking for