Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

GRID Refresh

txhdeve

2008-10-31


Author LoginPost Reply
Hi all:



     I encountered a problem that the grid can not refresh when its
source changed.

Actually I have put the inPlace in the grid,and I monitored the productList
has been changed but the grid's data not refresh.

Tml is:



<t:actionLink t:id="queryAction" t:zone="resultZone">Query</t:actionLink>

        <t:zone t:id="resultZone">          



           <t:block id="gridBlock">

             <t:grid t:source="productList" t:inPlace="true"
t:model="dataModel" t:row="currentProduct"
t:exclude="special,prop2,prop3,parentId,itemId">                

                <t:parameter name="empty">

                  ${message:noProductData}

                </t:parameter>

               

                <t:parameter name="internalNumberCell">

                  <a
href="javascript:setParentValue('${currentProduct.internalNumber}','${curren
tProduct.productName}')">${currentProduct.internalNumber}</a>

                </t:parameter>

               

                <t:parameter name="productNameCell">

                  ${currentProduct.productName}

                </t:parameter>

             </t:grid>

           </t:block>

        </t:zone>







pageClass is:

  @Inject

     private Block gridBlock;

     @OnEvent(component="queryAction",value="action")

     Block actionEvent(){


productList=productService.getProductsByKey(value_internalCode);

        return gridBlock;

     }







What's wrong with my code?? Thanks ..

©2008 gg3721.com - Jax Systems, LLC, U.S.A.