Version 4

    Description

    The tag designed for usage with Ajax behaviours/components in order to provide specific options for queue which will be used by the behaviour/component or to attach it to some particular queue(future, now we have only one common queue)

    Base Discussion

    http://www.jboss.org/index.html?module=bb&op=viewtopic&t=159839

    attachQueue as a Tag

    We decided to use tag because of poor support of nested behaviours in JSF itself(nested behaviour can't access it's parent directly and knows nothing about it). So the construction like this:

     

       <a4j:ajax event="keyup"...> 
           <a4j:attachQueue queue="foo"/>
       </a4j:ajax>
    

     

    can't be processed correctly for this case if we will implement attachQueue as a behaviour.

     

    So in order to have this simple constructions working we will implement it as a tag.

    Usage

    Simple case. The tag defined as a cild of simple ajax behavior or component with single behaviour:

       <a4j:ajax event="keyup"...> 
           <a4j:attachQueue queue="foo"/>
       </a4j:ajax>
       <a4j:commandButton...> 
           <a4j:attachQueue queue="foo"/>
       </a4j:commandButton>

     

    More complex case. There we put tag to the component which has a few Ajax behaviours plugged:

    <rich:tree>
           <a4j:attachQueue event="onexpand, oncollapse" queue="foo"/>
           <a4j:attachQueue event="onselect" queue="foo"/>
    </rich:tree>
    

    Tag Options

    Ajax Request Options

    • requestSimilaryId
    • requestDelay
    • timeout
    • ignoreDupResponce

    Events

    • onrequestqueue
    • onrequestdequeue