I have the same problem. That is:

I have a block call blockDecorator in code like this:

<t:block t:id="blockDecorator">
                <div class="GridMultiActionWrapper">
                <div class="GridMultiActionContainer">
            <div class="GridMultiAction">
                        <t:form t:id="selectionForm" zone="prop:zone" 
context="containerContext">
                                <t:hidden t:id="selectedItems"/>
                                <t:hidden t:id="zone"/>

                                <div class="CheckboxSection">
                                        <t:if test="paging">
                                        ${assistanceText('grid.select')}
                                        <ozc:MessageTip 
clientId="${zone}-page-selection"
cssMessageType="Heading">
                                                
<p>${assistanceText('grid.select.tip')}</p>
                                        </ozc:MessageTip>
                                        &#x20; 
                                        </t:if>

                                        <t:checkbox t:id="selectAll"
label="prop:assistanceText(selectAllLabelKey)"/>
                                                
                                        <t:label for="selectAll"/>

                                        <t:if test="paging">
                                                <t:checkbox 
t:id="selectThisPage"
label="prop:assistanceText('grid.select.this-page')"/>
                                                <t:label for="selectThisPage"/>
                                        </t:if>
                                </div>

                                <t:parameter name="else"> </t:parameter>

                                <div class="ActionSection">
                                        ${assistanceText('grid.action')}
                                <ozc:MessageTip clientId="${zone}-actions" 
cssMessageType="Heading">
                                        
<p>${assistanceText('grid.action.tip')}</p>
                                </ozc:MessageTip>
                                &#x20; 
                                        <t:select t:id="multiAction" 
model="selectActions"
blankOption="prop:blankOption"
                                                
blankLabel="${assistanceText('grid.action.blank-label')}"/>
                                        <ozc:Submit t:id="buttonOK" 
labelKey="ok-label" smallStyle="true"
                                                onclick="if
(ozc.DataGridManager.get('${clientId}').invalidAction(event))
                                                
{${clientId}ActionMessage.showMessageBox(); return false;}"/>
                                </div>
                        </t:form>
                </div>
                </div>
                </div>
        </t:block>


and I have two times to deligate this block to display it in head and botton
of a grid (for search result)
<div id="${clientId}" class="${cssClass}">
    <t:delegate to="blockDecorator"/>
</div>

<div class="DataGridFunctionalBar">     
        <t:delegate to="blockDecorator" /> 
</div>


The problem is that, it only work ok if I have only one deligate.
and It will not call ajax -> error when I have two deligate

Could you please  help me to find what I am wrong and how to fix it?
Thank you very much 
haopham



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Delegate-and-Blocks-tp4726071p4745752.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to