IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Async Commnad - Validation - Immediate - TextBox - Bug

  • 1.  Async Commnad - Validation - Immediate - TextBox - Bug

    Posted Thu May 08, 2008 10:04 AM

    Hi,

    I’m having the following problem:

    Scenario:

    I have a form with a few controls (various type text, combo, date) and also an async command button. I use the async command button to fetch data from a flow service. The async command button calls an Action Data Flow. This action data flow does three things:

    1 - Set the input parameters of the web service connector
    2 - Call the Refresh Action of the web service connector
    3 - Get the output values of the web service connector.

    This works fine until I needed to set the required attributes to some of the form fields.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Async Commnad - Validation - Immediate - TextBox - Bug

    Posted Mon May 12, 2008 01:08 PM

    When the user invokes a command, even an async command, (and the command is not set to immediate) the entire form containing the command is processed using the standard JSF lifecycle. One phase of that lifecycle is the ProcessValidations phase, which validates the form. If any fields fail validations, the processing is aborted.

    If the command is set to immediate, the ProcessValidations, UpdateModelValues, and InvokeApplication phases of the JSF lifecycle are skipped, and the command’s action is invoked immediately (at the end of the ApplyRequestValues phase). This means that none of the form’s fields are updated (which occurs during the UpdateModelValues phase).

    This is the behavior defined by the JSF spec. For more information about the JSF lifecycle, see the Java EE Tutorial at “http://java.sun.com/javaee/5/docs/tutorial/doc/bnaqq.html”, or the CAF and JSF article on the CAF SDK at “http://www.ajax-softwareag.com/articles/TADV3A/CAF-and-JSF/JSF_Life_Cycle.html”.

    Justin


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 3.  RE: Async Commnad - Validation - Immediate - TextBox - Bug

    Posted Mon May 12, 2008 06:19 PM

    Hi,

    I’m still a little confused.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS