Hi bugxiaoya,

I think you can solve this problem by setting the inPlace parameter of your grid. This causes your grid to act like a ajax component and prevents reloading the whole site.

http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html

<t:grid ... t:inplace:"true"...>...</t:grid>

greeting

On 20.08.2010 06:43, bugxiaoya wrote:
I am using Tapestry 5.1 Grid Component for data display.
the problem is:
when click the sort icon in the table head,it is just redirected to the
Start page.
set the SymbolConstants.SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS  to be "true"
in AppModule.contributeApplicationDefaults() can resolve this problem,but is
there any other way?

P.S:the same problem when click the paging label of grid component.

the source code is as follows:
        <t:grid source="users" row="user" add="delete" rowsPerPage="2"
                pagerPosition="bottom" exclude="id">
                <p:nameCell>
                        <t:pagelink page="edit" context="user.id">${user.name}
                        </t:pagelink>
                </p:nameCell>
                <p:deleteCell>
                        <t:actionlink t:id="delete" 
context="user.id">${message:delete-label}
                        </t:actionlink>
                </p:deleteCell>
        </t:grid>

http://tapestry.1045711.n5.nabble.com/file/n2641788/%E6%90%9C%E7%8B%97%E6%88%AA%E5%9B%BE_2010-08-20_12-41-38.bmp


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to