How to create a popup event which the producer is a 'button' in managed bean

I can create a contextual action event named "ReportGenerationEvent" for the producer to declaratively: button successfully.

< af:button text = "OK" id = "b4" actionListener = "#{bindings.eventBinding.listener.processAction}" / > "

Page definition file:

< eventBinding id = "eventBinding" Listener = "javax.faces.event.ActionListener" >

" < events xmlns =" http://xmlns.Oracle.com/ADFM/contextualEvent "> "

< name of the event = "ReportGenerationEvent."

customPayLoad = "#{pageFlowScope.someManagedBean.reportFormat}" eventType = "Event Action" / > ""

< / events >

< / eventBinding >

but I also want to do something else before publish event contextual action by clicking this button. So I put a method of bean managed as actionListener property value.

< af:button text = "OK" id = "b4" actionListener = "#{pageFlowScope.someManagedBean.processXXX} '"

I want to program the contextual publshing event logic in managed bean, but it seems that it is wrong. How to solve my problem?

{} public void processReportGeneration (ActionEvent actionEvent)

Add the code in the event here...

publish the contextual event

BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

JUCtrlActionBinding actionBnd = (JUCtrlActionBinding) bindings.getControlBinding("eventBinding"); This conversion is wrong.

((DCBindingContainer) bindings) .getEventDispatcher () .queueEvent (actionBnd.getEventProducer (), "myString");

((DCBindingContainer) bindings) .getEventDispatcher () .processContextualEvents ();

}

I noticed contextual event can only be created/published on the producer based on a method of action, action, value attribute or list binding.

but I have not found this link for a contextual action button event, only the following definition exists in the definition of page file. Here, I'm confused.

< eventBinding id = "eventBinding" Listener = "javax.faces.event.ActionListener" >

" < events xmlns =" http://xmlns.Oracle.com/ADFM/contextualEvent "> "

< name of the event = "ReportGenerationEvent."

customPayLoad = "#{pageFlowScope.someManagedBean.reportFormat}" eventType = "Event Action" / > ""

< / events >

< / eventBinding >

Hello

type of contextual issues event listener. Here is an example in a blog: one size does not fit all: JDev 11 g: contextual events programming

Frank

Tags: Java

Similar Questions

  • How to get an onChange event when the user clicks a button?

    Hello

    I'm new to APEX and have the following problem:

    Implementation:
    There are two text elements, one for the zip code and the other for the city.

    When you change the zip code, the city will be changed accordingly with the data from the database.

    I've implemented an "OnChange" in the zip code for this element.

    Problem: The on change event is executed only if the user leaves the text with a tab element or click on another piece of text.

    When it hits the "next page" button directly the city is not changed.

    Pointers for a solution please.


    Turalf

    Published by: Turalf on May 12, 2010 07:52

    Well, depends on how your button is built but, in any case, Javascript supports the onclick event on the element for each HTML.
    Model based buttons are often created as links using the indicator A, but which prevent you from adding an onclick on her event.
    In this case you must choose if you want to cancel the default action, or you prefer to perform the default action (the doSubmit in general) as well as the onclick event.
    The order of execution is
    1. the onclick event
    2. default action

    If you return false from the associated with onclick the function Manager, the default action will be canceled if you return true, he will be executed.

    Flavio

    ----
    http://oraclequirks.blogspot.com

  • How to create a shortcut to toggle the sound device?

    Anyone have any suggestions on how to create a shortcut to toggle the USB audio device in Device Manager?

    A shortcut is to enable this device, and the other shortcut is disable this device.

    Thanks for all the suggestions

    Hi oem7110,

    · Why you want to create a shortcut to enable or disable an audio device from Device Manager?

    You will be able to create the shortcut to Device Manager but no shortcut to enable/disable a device in Device Manager:

    a. right-click on the space empty where you want to create a shortcut

    b. click the shortcut

    c. in the type of space empty in devmgmt.msc

    d. click Next and follow the instructions in the wizard.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer.  Think of it as a broad a page roll.

    When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.

    Some printers are capable of automatic double-sided printing.  With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages.  You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • How to create a restore point in the protection of the system in safe mode?

    As topic the question, how to create a restore point in the protection of the system in safe mode?

    Hello

    read a tutorial on the below link for everything you need to know about the system restore

    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    and read this too

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

  • Smartphones blackBerry how to create a new folder in the video folder in the media

    Hi, I'm trying to figure out how to create a new folder in the video folder in the media. I can easily create new folders in the pictures folder, but not in the videos... Why? Thanks in advance for your help.

    well I'm sorry, I think that I have not read your emails correctly.

    The media application doesn't care about records at all. It will read the files, the tags when they are available, playlists, but it will not show the files. with the exception of the pictures.

  • How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    How to create a Viewer without buying the image? I want to be able to save the images I'm looking a subject without purchase or download.

    After talking to the Customer Service, I now get it. Thank you.

    That is to say: down arrow recorded a watermark image in the gallery without you buy. You can download an overview lores on your desktop for motorhomes with this same arrow, but it is unfortunately a watermark (unlike the DPC). You can also copy and send a link to the Gallery clients to review before you buy.

  • How to create my electronic signature for the first time

    How to create my electronic signature for the first time

    Hi debbieh62171891,

    You can fill feature & signature to create a Signature in Adobe Reader. If you want to create a Digital Signature using Adobe Reader you must then a PDF form with signature inside and drive field expanded licence fees. In this case, when you click the signature field it will take you with the process of creating a Digital Signature.

    Thank you

    Abhishek

  • Please how to create an e-commerce using the muse of adobe

    Please how to create an e-commerce using the muse of adobe

    ECWID is certainly the easiest to customize muse and it's very easy for customers to add/manage products. Another thing that many people love in Ecwid, it's that you can host several stores account. If you know css/javascript then you can do this on your own, but if you want a widget that does, make these widgets.

    If you are looking for some great Ecwid widgets, you can enter these ones that are free. And if you are wanting to customize even more (including the ability to host multiple account stores), you can get these even more impressive widgets for $14.99 with promo code: 1MUSESTORE #.

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to create images that react to the size of the browser (and not to the device)?

    How to create images that react to the size of the browser (and not to the device)?

    Hello

    Please try this widget.

    http://widgets-musethemes.BusinessCatalyst.com/tb032.html

    Concerning

    Vivek

  • How to create drop down menus in the main menu?

    How to create drop down menus in the main menu?

    such as:

    1 menu 2 menu 3 menu 4

    menu one

    menu b

    menu menu menu x c y menuz

    menu d

    I have the top menu, but don't know how to get the submenus

    Help you to appreciate in advance

    You must set the 'Pages' menu preferences:

  • How to create checkbox with HTML in the labels?

    How to create checkbox with HTML in the labels?
    If it is possible without the help of APEX_ITEM. BOX?

    Hello

    Yes you can do it. You just need to set * "Escape special characters" = No * in the area of 'Security' of the page box point you. But please be aware that this change could make your application vulnerable to XSS attacks in the case if users are allowed to enter data into the table that is used to fill the entries in the box.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for

  • Display brightness with EliteBook 8460p function keys

    I'm having the same problem with my brand new 8460 p which was much discussed here: the brightness of the screen cannot be adjusted using the function (fn + F keys) then under Windows. In other threads, the problem has been resolved by installing the

  • Tecra S2: Check docking and automate the Fn + F5

    Hello I have a * Tecra S2 PM 730 1600 512 MB 40 GB DVD - CDRW 15.0 "TFT WXPP * Nvidia Chipset GO 6600REF PTS20E-01J00LBT *.TOSHIBA 3 * PN PA3314E-1PRP PORT REPLICATOR-*.s/n 34032428Tecra S2: Centrino PM730/XP Pro/15.0Agreement: FE065C7FS/N: 55891330-

  • HP Pavillion Smart Touch 15: turn on computer, says please wait or AutoFix and then the screen turns white. Goes no further

    My computer was las night. I turned it on this morning and it says the auto repair or please wait a few seconds then screen goes black or white. It doesn't let me do anything else. It is located on a white screen. Help, please

  • How to create an executable

    Hello, I try to figure out how to make an executable file of LabVIEW. This is my first time ever create an executable, so I need instructions to the base. I tried to do by using the project manager. The created file must LabVIEW Run-Time in order to

  • Generate reports in double ATML

    I have what seems to be a very simple problem, but I'm having a hard time finding a solution. I use TestStand 4.2.1 (2010 D3) using sequential and parallel process templates customized depending on whether or not the Test calls for DUT/catch multiple