What's the difference between Action Objects and ActionListeners

Hello,
in the Introduction to JSF two ways handling action are demonstrated. One way is "Combining Component Data and Action Object" the other way is "Handling Events."
What's the difference? When do I use this or that way?
The one thing I understand is when using "Combining Component Data and Action Objects" I use the default ActionListener and I may directly access the input values.
TIA,
Juergen

Hi Juergen,
The bottomline is 'not much', only in the details to these two approaches differ.
The ActionListener object will have events broadcast to it for a particular object by the event mechanism in JSF. You can add one to a specific component via the f:action_listener tag. This will have your listener getting events during specific points in the request processing lifecycle (you specify via your return value for getPhaseId).
The Action class that an actionRef reference refers to an Action that will be invoked during the invoke application phase. (see pg 71).
I would recommend using actionRefs and Action objects wherever possible and going to ActionListeners only when you need notifications during a specific phase of the request/response cycle.
Hope this helps,
-bd-
http://bill.dudney.net

Similar Messages

  • What are the differences between PD objects and PA objects?

    can any one tell me What are the differences between PD objects and PA objects?

    PA is based on Infotypes 0000-0999. PD is based on Infotypes 1000-1999, chief being Objects Infotype 1000. Objects Infotype is the source of different Object Types such as Person, Position, Org Unit etc. You can check that through transaction OOOT.
    Regards
    Lincoln

  • What is the difference between action and workflow? How do I decide that I need an action in a transaction and not a workflow and vice versa?

    Dear Experts,
    I have few doubts and request your expert inputs to clarify my doubts.
    What is the difference between action and workflow? How do I decide that I need an action in a transaction and not a workflow and vice versa?
    Your earliest response is highly appreciated.
    Thanks,
    SMTP

    Hi SMTP,
    First of all, as I mentioned action is nothing but an executable work item which is designed in the workflow itself. In other words, Workflow is like your OOPS class. At run time, workflow instances are created just like objects of classes. Now, the steps designed in the workflow are called TASKS and the instances of tasks are called WORKITEMS. Now, the work items where any user action is required are called executable work items. ANd the work items where no user action is required (for example, sending an email in background) are called non-executable work items.
    Whether to go with development of workflow or not depends upon your business scenario. If your requirement is only to send an email and you find any BAdi or exit where in you can write your logic then there is no need of creating a workflow. If there is a defined business process with defined users and time lines, then you can go with the development of workflows.
    Rest, the below link will help you in understanding basic concepts of workflow :
    Why use SAP Workflow? | Insight Consulting Partners
    Regards,
    Richa

  • What is the difference between Action & Workflow?

    hi,
    What is the difference between Action & Workflow?
    regards,
    babu

    Hi,
    Actions
    Actions are important for maintaining and improving business relationships. You can schedule and start predefined processes with the Actions component by means of user-definable conditions from transaction and marketing objects.
    You can tailor the type and time of actions to the requirements of your customers and the processes in your company. This component enables you to match your service, sales and distribution management, and your campaign management even more closely to customer needs, and, simultaneously, to automate them
    In simple words Actions are automatic actions that are configured to occur in business transactions (activity, sales order, quotation etc.) as a result of particular condition like change of status to let us say "in process" from "open".
    Workflow:
    The automation of a business process, in whole or part, during which documents, information or tasks are passed from one participant* to another for action, according to a set of procedural rules.
    *participant = resource (human or machine)
    SAP Business Workflow is the R/3 tool for handling the process automation within R/3 or between R/3 systems and other systems involved in the business process. It is flexible enough to handle ad hoc processes such as the circulation of an electronic document. It is robust enough to handle mission critical process in the production system such as the creation of a material master.
    The different R/3 applications supply standard workflows for the commonly occurring processes. Once these workflow templates are activated, they are ready for immediate use. A complete set of workflow tools, including the workflow editor and workflow generation wizard, are provided to enhance these standard workflows or create new workflows. These tools are complemented with transactions for monitoring, tracking and the statistical analysis of the processes.
    Because the business process often does not step at the R/3 boundary, various interfaces and third party tools are available for extending the process across systems.

  • What is the difference between document class and normal class

    Hi,
    Please let me know what is the difference between document class and normal class.
    And I have no idea which class should call as document class or call as an object.
    Thanks
    -Actionscript Developer

    the document class is invoked immediately when your swf opens.  the document class must subclass the sprite or movieclip class.
    all other classes are invoked explicitly with code and need not subclass any other class.

  • What's the difference between transport route and transport layer

    what's the difference between transport route and transport layer,Can somebody give me some explaination? thks in advance!

    Hi,
    Transport Layer in ABAP Workbench
        The Change and Transport System supports the distribution of development
        work on large projects across multiple SAP Systems.
        The packages in each development system are grouped into one transport
        layer.
        The transport layer determines whether objects are assigned to a local
        or transportable change request.
    Use
        Each of your SAP development systems is assigned a transport layer as
        its standard transport layer. If you use Extended Transport Control, you
        can assign different standard transport layers to certain clients.
        You can define at the most one consolidation target for each SAP System
    and transport layer.
    When you create a package, it is assigned the standard transport layer
    of the SAP System.
    If you want to assign a different transport layer to a package, you
    require the administration authorization for the Change and Transport
    System.
    The objects in a package automatically have the transport attributes
    defined for the corresponding transport layer.
    o   If a consolidation route originating in their SAP System is defined,
         then the objects are assigned to a transportable request, and
         transported into the consolidation target when it is released.
    o   If a consolidation route is not defined, the objects are assigned to
         a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the
    transport attributes of the standard transport layer of the system or
    client.
    It is best to assign a package a standard transport layer for which a
    consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the
    Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
         The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of
         Release 4.0A and cannot be maintained.
    Regards
    Ben

  • What are the differences between Captivate 6 and 7?

    What are the differences between Captivate 6 and & 7?

    Check the Captivate blog. BTW there were 3 versions of 6 (each with different features), and already 2 versions of 7.
    http://blogs.adobe.com/captivate/2013/12/the-most-awaited-enhancements-in-advanced-actions -and-variables-are-here.html    explains the new features in 7.0.1.
    You can also find articles on the features of 7.

  • What is the difference between workbench request and customizing request

    hi gurus
    can anyone suggest me
    what is the difference between
    workbench request and
    customizing request
    abaper ll work on which request
    thank you
    regards
    kals.

    A quick  search in the forum would have taken you to this answer
    Workbench Requests
    When you change a Repository object of the ABAP Workbench, a query window appears in which you need to specify a Workbench request. You can only save the changes if you have assigned the object to a change request.
    Workbench requests and the tasks assigned to them are normally used to record changes to Repository objects and Customizing for all clients. However, you can also include client-specific Customizing.
    Whether the changes to Repository objects are transported depends on whether a transport route is defined from the current SAP System for the package of these objects. From the system settings, the system automatically determines whether the change requests are transportable and to which target system they should be transported.
    Customizing requests
    Customizing requests record client-specific Customizing settings made in a single client (the source client of the request).
    Automatic recording of configuration activities in the Customizing work for a client can be activated or deactivated for each client with Client Control. If automatic recording is active, a query window appears when you change Customizing settings, asking you to specify a Customizing request.
    Whether Customizing requests are transported or not, does not depend on the objects entered, as is the case with Workbench change requests. The Customizing requests in an SAP System (or in a client if you use Extended Transport Control) are either all transportable or all local, depending on the system setting. The system uses the standard transport layer to determine automatically whether the change requests are transportable and to which target system they should be transported. However, you can change this manually.

  • What is the difference between ejb reference and ejb handle?

    Hi:
    I am newbie for J2EE.
    I want to know what is the difference between ejb reference and ejb handle
    from the client view and from the container view?
    Very Thanks!
    Stive

    Hi John,,
    1) Ejb Object Handle are nothing but a long lived proxy for the
    ejb object, using this handle user can disconnect from the Ejb Server/Container
    at any time
    and after some time using the same handle he can able to resume the conversational
    state
    with the server / container where he was been disconnected From.
    And there are currently two Handles , HomeHandle and Handle for EjbHomeObject
    and EjbObject
    Respectively. Both these handles have Persistent reference to the EJB Object
    2) Ejb Reference is used to lookup a bean from other Enterprise Bean
    Ejb reference is a nickname for the JNDI Location that you want to lookup a bean.
    your code will looks up a Home object via using this nickname
    and the deployer will bind the
    nickname to the JNDI location of its choice
    EJb Reference are declared in the deployment descriptor
    Regards
    Karthikeyan Gangadharan
    SIP Technologies, Chennai
    E-mail-ID : [email protected]
    "John Stive" <[email protected]> wrote:
    >
    Hi:
    I am newbie for J2EE.
    I want to know what is the difference between ejb reference and ejb
    handle
    from the client view and from the container view?
    Very Thanks!
    Stive

  • What are the difference between 4.6c and 4.7 versions?

    what are the difference between 4.6c and 4.7 versions?
    if any please give me answer
    regards
    ramanji

    Hi,
    Upgrade SAP or Installation of SAP R/3 and ECC
    What is ECC?  Where to find the installation steps of  ECC 5/6.0 with SQL as database and on windows platform with the steps including Solution Manager installation?
    http://service.sap.com/instguides
    ECC means Enterprise Central Component.
    There are all the relevant installation guides. You NEED SAPNet access because without a registered and licensed SolMan installation number you will not be able to generate the SolMan key for the ECC installation.
    Upgrade to 4.7
    Have you gone through an upgrade to 4.7? 
    What are the difference or changes associated with 4.7. 
    If you are currently on 4.6C and are inching forward to upgrading to 4.7 then this information might be useful to you.
    There is very little difference between 4.6 and 4.7, the only "steps" you should need are steps in SU25 ( skip step 1) Then go through all your role and perform a merge old new to bring in the new authorization objects 
    Just to forewarn you of a potential problem which have been encounter at the point of writing.
    After updating/ modifying roles in step 2C, when going back into 2C to make sure all roles are now green, 70% have gone back to red! 
    The maintenance done is ok, but there seems to be a problem while trying to go back into the roles again to re-generate. 
    SAP recognizes them as needing "adjustment", so you cannot pick them up in mass generate in PFCG as they do not come in, even though the authorizations tab is red. 
    This problem is currently with SAP and it is confirmed that nothing have been done wrongly. 
    Generally, the work is quite manageable in the upgrade, but don't be surprised at how big the upgrade is when compared to upgrading from 46b to 46c.
    If we have full software of 46c and 47E is it possible to upgrade 46c to 47E or there is a seperate 47E upgrade software need to be requested from SAP?
    Where I can get the document with upgrade steps on the service market place?
    It is of course possible and supported:
    http://service.sap.com/inguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> (choose your version)
    at the bottom there is an "Upgrade guide" for Windows and Unix.
    For Upgrades it is recommended to read ALL the notes mentioned in the 
    upgrade guide and to make sure one is using
    - the correct version of the "tp" program
    - the correct version of the "R3trans" program
    - the correct version of the "R3up" program
    All that is explained in the upgrade guide and in the corresponding notes.
    If this is your first upgrade you should take a person, that has some experience on doing that for the first time.
    Installation of SAP R/3
    Currently we are going to install SAP on a new IBM server from the existing COMPAQ server. Where can I get the steps for that. 
    Configuration is :
       OS - windows 2003 server
       DB - Oracle 9i
       SAP 4.7
    http://service.sap.com/instguides
    --> SAP Components
    --> SAP R/3 Enterprise
    --> SAP R/3 Enterprise Core 4.70 / Ext. Set 2.00 (SR1)
    --> Inst. Guide - R/3 Enterprise 4.7 x 2.00 SR1 on Win: Oracle
    The above url is the SAP Service Marketplace with all the information you need to install, configure and run system. You need to be a valid licensed customer with a user ID and PASSWORD to use that.
    Without access you won't be able to successfully run any SAP systems because it has notes, patches etc.

  • What is the difference between XI architect and Xi developer

    Dear Friends
             Would you like to answer me on What is the difference between XI architect and Xi developer?
    thanking you
    regards
    Naim

    Hi,
    >>>>XI architect
    he/she knows/understands how XI works
    in all aspects so can model efficient flows
    via XI
    he doesn't even have to do anything in XI
    (except the specification for developer)
    as he already did it in many projects
    and he knows that it's working like he says...  
    >>>Xi developer?
    it can be any person how knows a little
    bit of XI (just to create XI's objects)
    and nothing more
    Regards,
    micha

  • What is the difference between customer exits and user exits?

    hello friends,
    what is the difference between customer exits and user exits?

    Hi
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.     *-- Mani
    The following document is about exits in SAP :-
    The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. 
    SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Types of Exits 
    There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.
    Menu Exits
    Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
    SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Screen Exits
    Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.
    Function Module Exits 
    Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. 
    When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. 
    Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. 
    These calls have the following syntax: 
    CALL CUSTOMER-FUNCTION ‘001’.
    Field Exits
    Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 
    The field exit concept lets you create a special function module that contains this logic. 
    You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 
    In 4.6c, you can use "RSMODPRF" program to create field exits.
    An example of a user exits :-
    MODULE user_exit_0001 INPUT 
        CASE okcode.
            WHEN 'BACK OR EXIT'.
                CASE sy-dynnr.
                        WHEN '100'.
                             SET SCREEN 0.
                             LEAVE SCREEN.
                        WHEN '200'.
                             SET SCREEN 100.
                             LEAVE SCREEN.
                 ENDCASE.
          ENDCASE.

  • What is the difference between "Group Albums" and "Albums"

    What is the difference between "Group Albums" and "Albums"

    An album is a shareable object; you can add photos to an album, then subsequently share that album with someone else. It's better than sharing your whole library, and allows you to make and share lots of different related sets of photos.
    Group Albums allow you to collaborate on an album with others. Both you and the collaborators can upload photos or videos, and view them in My Library. All members of the Group Album can also edit, copy, print, and download the items in the album.
    Only members of Photoshop.com can participate in Group Albums. But since membership is free, you can invite nonmembers to participate in a Group Album, and they can create a Photoshop.com account and contribute files.
    -Mark

  • What is the difference between, Configuration Components and Software Comp?

    Experts,
    Can somebody tell me, What is the difference between, Configuration Components and Software Components?

    Hi,
    Configuration Objects:
    You use configuration objects to help you to structure and organize your configuration data in the Integration Directory
    You can group configuration objects by using configuration scenarios.
    The following configuration objects exist:
    1) Collaboration profile objects
        -Communication Party
       -Service
       -Communication Channel
    2)  Logical routing objects
      - Receiver determination
      - Interface determination
    3)  Collaboration agreement objects
       -   Sender Agreement
       -  Receiver Agreement
    Refer the below help which I did search on SDN:
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/131eb4ef2fb344abf471c9eac0063a/frameset.htm
    Softweare component:
    http://help.sap.com/saphelp_nw04/helpdata/en/12/003479fa4c2d4aa9d175dcbb081d66/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/37/ae463c75a8477ee10000000a114084/frameset.htm
    Thnx
    Chirag

  • What is the differences between Transparent,Pooled and Cluster tables?

    Hello all,
    What is Pool table?What is the differences between Transparent,Pooled and Cluster tables?
    Regards!
    Purna

    Transparent table:
    Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined together with their (database-independent) data types and lengths.
    A table definition in the ABAP Dictionary has the following components:
    Table fields: The field names and the data types of the fields contained in the table are defined here.
    Foreign keys: The foreign keys define the relationships between this table and other tables.
    Technical settings: The technical settings define how the table is created on the database.
    Indexes: Indexes can be defined for the table to speed up data selection from the table.
    There are three categories of database tables in the ABAP Dictionary.
    A physical table definition is created in the database for the table definition stored in the ABAP Dictionary for transparent tables when the table is activated. The table definition is translated from the ABAP Dictionary to a definition of the particular database.
    On the other hand, pooled tables and cluster tables are not created in the database. The data of these tables is stored in the corresponding table pool or table cluster. It is not necessary to create indexes and technical settings for pooled and cluster tables.
    Pooled table
    Pooled tables can be used to store control data (e.g. screen sequences, program parameters or temporary data). Several pooled tables can be combined to form a table pool. The table pool corresponds to a physical table on the database in which all the records of the allocated pooled tables are stored.
    Cluster table
    Cluster tables contain continuous text, for example, documentation. Several cluster tables can be combined to form a table cluster. Several logical lines of different tables are combined to form a physical record in this table type. This permits object-by-object storage or object-by-object access. In order to combine tables in clusters, at least parts of the keys must agree. Several cluster tables are stored in one corresponding table on the database.
    Regds,
    Manohar

Maybe you are looking for

  • SRM Extended Classic Scenario

    HI, Please let me know in the extended classic scenario when the PO is created in SRM does the same PO  number gets created in the backend system.Also is the PO created in the Backend system can be opened in transaction ME21N or it can be viewed only

  • Error when doing material transfer

    hi expert, when doing material transfer from plant 0001 to plant 0002, error pops up : "maintain vendor for the customer 1234 attached to supplying plant 1234".. what should i do?? thanks

  • Ask timesten 11.2 Using Oracle Clusterware to Manage Active Standby Pair

    Using Oracle Clusterware to Manage Active Standby Pairs http://download.oracle.com/docs/cd/E13085_01/doc/timesten.1121/e13072/cluster.htm#CCHCFAAD What is that mean ? I have to use Share Storage for... Oracle Clusterware? I think right?... or wrong ?

  • Mistakenly Re-installed Software

    I have just bought a Macbook Pro. I stupidly re-installed the Snow Leopard Software onto the brand new Mac. After I did it asked me to install the updates, it has taken about 24 hours for the updates to install. Will this cause any problems? Have I w

  • Equium A100-02L screen colours fade to green/yellow.

    Equium A100-02L screen colours all green/yellow but it all displays correctly in Safe Mode. Reliability & Performance Monitor says: A device has a configuration problem that prevents it from working properly. Details: The device, Microsoft ISATAP Ada