Here is my template...
 
I have a criteria form 
then the grid
 
is somethign disconnected here?
 
I dont know why the grid wuold disappear off the page when i click a sort column
 
<t:layout title="literal:Leaders Query" 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";

                xmlns:p="tapestry:parameter"

                        xmlns:j="tapestry-library:jquery">

        

    <t:delegate to="block:leadersQueryMainBlock" />

    

    <t:block id="leadersQueryMainBlock">

        

                <t:block t:id="criteriaContentBlock" id="criteriaContentBlock">

                

                        <t:form t:id="criteriaForm" id="criteriaForm" 
clientValidation="false" >

                                <t:errors/>

        

                                <table width="100%" border="1" >

                                        <tr>

                                                <th>Year</th>

                                                <th>League</th>

                                                <th>Season</th>

                                        </tr>

                                        <tr>                                    

                                                <td>

                                                        <select t:type="Select" 
t:id="yearSelect" t:clientId="yearSelect" id="yearSelect"

                                                                
t:model="prop:yearSelectModel" t:encoder="prop:yearValueEncoder"

                                                            t:value="prop:year" 
blankOption="never"

                                                            />          

                                                </td>                           
        

                                                <td>

                                                        <select t:type="Select" 
t:id="leagueSelect" t:clientId="leagueSelect" id="leagueSelect"

                                                                
t:model="prop:leagueSelectModel" t:encoder="prop:leagueValueEncoder"

                                                            
t:value="prop:league" blankOption="never"

                                                            />          

                                                </td>                   

                                                <td>

                                                        <select t:type="Select" 
t:id="seasonSelect" t:clientId="seasonSelect" id="seasonSelect"

                                                                
t:model="prop:seasonSelectModel" t:encoder="prop:seasonValueEncoder"

                                                            
t:value="prop:season" blankOption="never"

                                                            />          

                                                </td>                           
                                                                                

                                                                

                                                <td style="width:20%">

                                                        <t:submit t:id="go" 
event="go" class="button" value="GO" align="right"/>

                                                </td>                   

                                        </tr>

                

                                </table>                                        
        

                        </t:form>                               

                </t:block>

        

                <t:block t:id="collectionContentBlock" 
id="collectionContentBlock">

                        <t:If test="source">

                                

                                <t:grid t:id="grid" source="source" row="bean" 
inPlace="true" add="__id__" reorder="__id__" t:mixins="tynamo/BeanModelAdvisor">

                                        <p:__id__header>

                                        </p:__id__header>

                        

                                        <p:__id__cell>

                                                <t:pagelink t:page="Show" 
context="showPageContext"><t:tynamo.identifier object="bean"/></t:pagelink>

                                        </p:__id__cell>

                                </t:grid>

                                

                        <p:else>

                                <B><CENTER><H3>No objects to 
render</H3></CENTER></B>

                        </p:else>               

                        </t:If>

                </t:block>      

        

                <hr/>

        

        

            <fieldset class="k-sub-group" style="fieldset.k-sub-group { 
border:1px; background: ${adminLayout.dividerBackGroundColor}; }">

                <legend>

                    Selection Criteria

                </legend>

        

                <ul class="k-check">

                                <t:Any id="criteriaSelect">

                                        <t:delegate to="criteriaContentBlock"/>

                                </t:Any>        

                </ul>

            </fieldset>         

        

                <B>Players</B>

            <!-- OK here is the definition. It is all referral declaration 
within <td> -->

                <table width="100%" border="3" align="center">

                        <tr>

                                <td>

                                        <hr/>

                                        <t:Any id="collectionContent">

                                                <t:delegate 
to="collectionContentBlock"/>

                                        </t:Any>

                                </td>   

                        </tr>

                </table>



    </t:block>



</t:layout>
                                          

Reply via email to