Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Alexander Muthmann

 Great, thanks for the feedback!

Have a lot of fun with tapestry ;)

On 20.08.2010 18:27, bugxiaoya wrote:

thanks,it works.

2010/8/20 Alexander Muthmann [via Tapestry]<
ml-node+2641993-90986904-102...@n5.nabble.com

   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

...

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:


${user.name}



${message:delete-label}






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

*smime.p7s* (6K) Download Attachment


--
  View message @
http://tapestry.1045711.n5.nabble.com/tapestry-grid-problem-when-sorting-redirected-to-Start-page-tp2641788p2641993.html
To unsubscribe from tapestry grid problem,when sorting,redirected to Start
page, click 
here.







smime.p7s
Description: S/MIME Cryptographic Signature


Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Thiago H. de Paula Figueiredo

On Fri, 20 Aug 2010 14:09:43 -0300, bugxiaoya  wrote:


Index.tml


Hi!

Index is the start page. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread bugxiaoya

Index.tml

http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">


${user.name}



Delete







Index.java
public class Index {

private UserDAO userDAO = new UserDAO();

private User user;

public User getUser() {
return user;
}

public void setUser(User user) {
this.user = user;
}

public List getUsers() {
return userDAO.findAllUsers();
}

void onActionFromDelete(long userId) {
userDAO.delete(userId);
}
}

http://tapestry.1045711.n5.nabble.com/file/n2642478/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg
 

p.s. when click the delete link in the pic above,it also forwards to the
Start page. I am really confused about that.
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-grid-problem-when-sorting-redirected-to-Start-page-tp2641788p2642478.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



Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread bugxiaoya

thanks,it works.

2010/8/20 Alexander Muthmann [via Tapestry] <
ml-node+2641993-90986904-102...@n5.nabble.com
>

>   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
>
> ...
>
> 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:
> >  > pagerPosition="bottom" exclude="id">
> > 
> > ${user.name}
> > 
> > 
> > 
> > ${message:delete-label}
> > 
> > 
> > 
> >
> >
> 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
> >
>
>
> *smime.p7s* (6K) Download Attachment
>
>
> --
>  View message @
> http://tapestry.1045711.n5.nabble.com/tapestry-grid-problem-when-sorting-redirected-to-Start-page-tp2641788p2641993.html
> To unsubscribe from tapestry grid problem,when sorting,redirected to Start
> page, click 
> here.
>
>
>

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-grid-problem-when-sorting-redirected-to-Start-page-tp2641788p2642432.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Joost Schouten (mailing lists)
Hi,

Though using ajax might solve it, there is a root cause of this
problem that needs to be addressed.

It almost sounds like  you have a method that catches all events fired
by the grid and forward to the start page. Probably unintentionally by
specifying your component in an event method and not the value (event
name).

Please share with us the full *.tml and *.java of your page with the grid.

Cheers,
Joost

On Fri, Aug 20, 2010 at 2:24 PM, Joost Schouten (ml)
 wrote:
> Hi,
>
> Though using ajax might solve it, there is a root cause of this problem that
> needs to be addressed.
>
> It almost sounds like  you have a method that catches all events fired by
> the grid and forward to the start page. Probably unintentionally by
> specifying your component in an event method and not the value (event name).
>
> Please share with us the full *.tml and *.java of your page with the grid.
>
> Cheers,
> Joost
>
> Alexander Muthmann wrote:
>
>  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
>
> ...
>
> 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:
>      pagerPosition="bottom" exclude="id">
>     
>     ${user.name}
>     
>     
>     
>      context="user.id">${message:delete-label}
>     
>     
> 
>
> 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
>
>
>
>

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



Re: tapestry grid problem,when sorting,redirected to Start page

2010-08-20 Thread Alexander Muthmann

 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

...

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:


${user.name}



${message:delete-label}




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





smime.p7s
Description: S/MIME Cryptographic Signature