GET THE NEXT STOP OF THE TRAIN FROM A MANAGED BEAN (JDEVELOPER AND ADF).

Hello.

I have a train that works perfectly with the buttom train Assistant; but when I try to create a custom button to the next train stop to skip a prompt to alert of error:

"java.lang.NullPointerException ".

"ADF_FACES-60097: SERVER SO THAT PPR, #2 EXCEPTION"


The managed code of the action of the bean is:


public String cb1_action() {}

Add the code in the event here...

                     

ControllerContext controllerContext = ControllerContext.getInstance ();

ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

TaskFlowTrainModel trainModel = taskFlowCtx.getTaskFlowTrainModel ();

TaskFlowTrainStopModel currentStop = trainModel.getCurrentStop ();

trainModel.getNextStop (currentStop);

Returns a null value.

}

Best regards.

Your use case is described in this blog http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf

Timo

Tags: Java

Similar Questions

  • Get the component Id in managed bean

    Hi experts,

    I ask a stupid question, but as I'm a newbie, I hope you will forgive me .

    I use JDev version: 11.1.2.3.0 My question is: is it possible to get a component inside a managed bean id? By components, I hear, buttons or menu items. The scenario, I want to create is:

    I use JasperReports to generate required reports. I would like to have something like a Menu with different elements. By clicking on each of them, set a string in the managed bean I use to generate reports (in fact the string would be the name of the jrxml file I'll load). And this string would get its value based on what menu item is selected.

    Is it possible to do such a thing? Or maybe another way would be more appropriate?

    Thank you in advance!

    Hello

    Then, when you press a menu on the page item, have a method called (all menu items call this action method), this method gets the Id (or maybe something else) of the menu item called him.

    Do not use the action property but the ActionProperty listener. Then the ActioneEvent in the managed bean method you navigate to the item getUIComponent() and call getId on it. This should solve the use cases

    Frank

  • How can I get the message from thunderbird to stop coming when I opened my email?

    How can I get the message from thunderbird to stop coming when I opened my email?

    Press the alt key to make the call of menu bar
    Select Tools-Options-general
    Disabled the Start Page

  • How to get the CD from recovery for my Portege R100?

    Hello friend

    I have a problem here:
    can us or I somehow get a replacement recovery cd coz my uncle recovery cd is lost?
    My portege R100 unable connect to the Welcome screen the only thing is to reinstall using recovery cd coz, if I installed it using another cd (not the recovery cd) it always come BSOD:
    "* stop: 0x0000007B (0xF7978524, 0xC0000034, 0x00000000, 0x00000000) he ' says that I have to check the virus problem is I can not connect to windows after the Welcome screen."

    Thank you

    Hello

    You can get the form from recovery CD Toshiba service partner in your country.

    Just FYI; the BSOD appears usually due to hardware malfunction or a serious software fault.

  • Is the another way to get the download from the support section

    Is there another way to get the download from the support section?

    Because the download speed is very slow. For example, in the new version of the value-added packaging and its 116 MB big need. A normal download time would be approximately 5-10 minutes. But when I download from Toshiba I need 2 to 6 hours. Not good for a company that manufactures laptops and high-performance computers.

    And the worst thing is that the connection is reset after a few hours... so I'll never get the update.

    Does anyone know help?

    Gruss
    Thomas

    Unfortunately, he has no other way to get the Toshiba drivers from the European pilot of Toshiba page.
    You are right at this moment that the file transfer is too long.
    I get about 10-19KO/s. That s is really very slow.
    Maybe the server is overloaded who knows I hope this will be resolved in the next time.

    Best regards

  • I need to get the bookmarks from a backup hard drive that the system failed on. were can I find the file/folder of bookmarks?

    I need to get the bookmarks from a backup hard drive that the system failed on. were can I find the file/folder of bookmarks?

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; NET4.0C; Media Center PC 6.0)

    Bookmarks are stored in a file called places.sqlite in the profile folder.
    To find out where the profile folder, see http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Get 7 Volume Info.vi returns an error when you try to get the information from disk on the cRIO-9025

    Hello

    I use a cRIO-9025 controller and want to get the information from the c: disk volume using the function to read the Volume information in the palette file I/O. When I run the function with the path as "C:\". ", the function returns a 7 error indicating that the path is incorrect.

    I used this function before with cRIO but unfortunately I have not any older devices with me to check this out now. I'm using LabVIEW 2009 SP1.

    Thank you very much!

    See you soon!

    Sankah2k

    On real-time targets VxWorks, the root of the path of the file is here (in lowercase). Try and let us know if it works. You would be better to use the constant path of the file to understand what looks like the path of the root directory.

  • What is the command of shortcut for all windows get the information from the computer?

    What is the command of shortcut for all windows get the information from the computer?

    instead of going to the computer / my computer > properties > discover the pc... basic information or go to the control panel...

    just a command for windows xp, vista, 7 for system looking for information....

    original title: what is the SHORTCUT COMMAND to get information from the computer system?

    Hello BlackSecret,

    The keyboard shortcut to get to the top of this information is Windows key + break Attn.

    Who does what you ask?
  • Update problems, I just reinstalled XP pro and I can't get the updates from the windows update web site

    I just reinstalled XP pro and I can't get the updates from the windows update web site. Whats up with this please help

    There is no way that anyone might be able to help without more. My initial guess and it is just a guess, is that you have to update Internet Explorer .v8. Click HERE and download IE8 and install it. Try again updates once the installation is complete.

  • I can hear a wav file, but could not get the video from my camera.

    original title: file WAV on Vista

    I can hear a wav file, but could not get the video from my camera.

    I have windows vista?

    Hello
    WAV files will be audio only.
    You can save this file as an MP4.
    B Eddie

  • Vista 64-bit now I changed my OS 32-bit now my web cam does not work, tried to get the drivers from dell but did not help

    of the vista 64-bit now, I changed my OS to Vista 32 bit , now my web cam does not work, tried to get the drivers from dell, but they are not available there. My laptop is studio-1537... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    I check your firewall settings to see if it can cause a conflict with the season chat software.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error: "this meeting uses computer audio (VoIP), computer audio is not available with this console, which is based on the Web." To get the audio from the computer, please install the Microsoft Office Live Meeting client. »

    Hello

    I have a problem with Live meeting 2007. I'm organizing a live meeting with people from different countries. Some of them cannot hear anything and can not use the microphone. They get this kind of error:

    "This meeting uses computer audio (VoIP), computer audio is not available with this console, which is based on the Web." To get the audio from the computer, please install the Microsoft Office Live Meeting client. »

    I tried to look for a solution, but I did not understand what Live Meeting I need to download.

    Can you help me?

    Thank you.

    Original title: Live Meeting 2007

    Hi Alex,

    Thanks for posting your query in Microsoft Community.

    I understand your concern. In this case, I suggest you refer to the Microsoft TechNet article following which sets out the series of frequently asked questions related to Live Meeting 2007 and check if the solutions are useful.

    FAQ: Live Meeting related topics media

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • To get the value from the user input

    Hi guys,.

    I have a .sql file, I need to get the feedback from the user and date to treat more end passing as a parameter in the procedure

    test. SQL

    Proc_process (p_in = > lv_in p1_in = > lv_in1);

    Once the process described above is then ask the user to change the table with the name of columnn like col_1

    Press on Y to continue or N to exit

    ALTER table T1 add col_1 date;

    I want these operations to be performed when run test.sql

    Hello

    Maybe something like that

    accept option_1 char prompt 'Do you want to alter table T1 ? ( press y to continue n to skip ) : ' default n
    accept option_2 char prompt 'Do you want to alter table T2 ? ( press y to continue n to skip ) : ' default n
    
    prompt alter table T1 : &option_1
    prompt alter table T2 : &option_2
    
    BEGIN
      --
      IF upper('&option_1') = 'Y'
      THEN
          DBMS_OUTPUT.PUT_LINE('>>>>>>>>>>> ALTER TABLE T1');
      END IF;
      --
      IF upper('&option_2') = 'Y'
      THEN
          DBMS_OUTPUT.PUT_LINE('>>>>>>>>>>> ALTER TABLE T2');
      END IF;
    END;
    /
    
    undef option_1
    undef option_2
    
    prompt @d:\temp\test_accept_2.sql
    

    concerning

    Kay

  • I have just reactivated Dreamweaver on a new computer.  How can I get the files FROM my website ON my computer so I can edit/update using Dreamweaver.

    I have just reactivated Dreamweaver on a new computer.  How can I get the files FROM my website ON my computer so I can edit/update using Dreamweaver?

    If your old machine still works, export your definition of original site to a portable player, copy in your new machine and then import the site definition to the new machine. The definition file will have the extension .ste

    Create an empty folder on your new machine.

    Define a 'new' web site on your new machine to point to the new local root folder.

    Log your server and download all of the subfolders and files in the folder root from the server to the new local root folder.

  • Is it possible to get the response from the API, if content is already published or not?

    Is there a way to get the answer from adobe as the status of the content (article, banner) / collection if it exists, or not, published successfully created or not? We have checked the code and found that in each application that they call to function _request() inside user.php, where they call to printCurlData() and his print on demand url, request data and all. So the code of response based on which we can create/update / publish content from our end.

    This same question has been requested through our beta developer discussion group and responded there.

    Neil

Maybe you are looking for