8.3. Coordination configuration

Configuration takes place in -object.xml file. The <coordination> tag can be used in both <page> and <portal> tags. When used in <portal> tag only <implicit-mode> tag can be defined for wirings and bindings:
<portal>

   ...

   <coordination>
       <bindings>
           <implicit-mode>TRUE</implicit-mode>
       </bindings>
       <wirings>
           <implicit-mode>FALSE</implicit-mode>
       </wirings>
   </coordination>

</portal>
When used within the <page> tag coordination event wirings and bindings can be defined:</page>
<coordination>
     
    <wirings>
        <implicit-mode>TRUE</implicit-mode>
        <event-wiring>
            <name>eventWiring1</name>
            <sources>
                <window-coordination>
                    <window-name>ShoppingCatalogPortletWindow1</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
            </sources>
            <destinations>
                <window-coordination>
                    <window-name>ShoppingCartPortletWindow2</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
                <window-coordination>
                    <window-name>ShoppingCartPortletWindow3</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
            </destinations>
        </event-wiring>
        <event-wiring>
            <name>eventWiring2</name>
            <sources>
                <window-coordination>
                    <window-name>ShoppingCatalogPortletWindow2</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
            </sources>
            <destinations>
                <window-coordination>
                    <window-name>ShoppingCartPortletWindow1</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
                <window-coordination>
                    <window-name>ShoppingCartPortletWindow4</window-name>
                    <qname>{urn:jboss:portal:samples:event}CartEvent</qname>
                </window-coordination>
            </destinations>
        </event-wiring>
    </wirings>
    

    <bindings>        
        <implicit-mode>FALSE</implicit-mode>
                  
        <parameter-binding>
            <id>parameterBinding1</id>
            <window-coordination>
                <window-name>SomePortletWindow1</window-name>
                <qname>foo</qname>
            </window-coordination>
            <window-coordination>
                <window-name>SomePortletWindow2</window-name>
                <qname>foo</qname>
            </window-coordination>
            <window-coordination>
                <window-name>SomePortletWindow3</window-name>
                <qname>foo</qname>
            </window-coordination>
        </parameter-binding>

        <parameter-binding>
            <id>parameterBinding2</id>
            <window-coordination>
                <window-name>SomePortletWindow1</window-name>
                <qname>bar1</qname>
            </window-coordination>
            <window-coordination>
                <window-name>SomePortletWindow2</window-name>
                <qname>{urn:jboss:portal:samples:daa1}daa1</qname>
            </window-coordination>
        </parameter-binding>

        <alias-binding>
            <id>aliasBinding1</id>
            <qname>foo</qname>
        </alias-binding>

        <alias-binding>
            <id>aliasBinding2</id>
            <qname>bar1</qname>
            <qname>{urn:jboss:portal:samples:daa2}daa2</qname>
        </alias-binding>
                  
    </bindings>
</coordination>

8.3.1. <implicit-mode>

This tag can be applied for both <bindings> and <wirings> tags. It defines if implicit coordination is enabled or disabled for this given portal object. Value of this setting is cascaded to all children in portal object tree unless overwritten somewhere in the hierarchy. If no <implicit-mode> is defined in portal object tree default value is TRUE.