Re: Redirect page

2010-07-01 Thread ebt
I just spent a bit of time looking for how to redirect, I got halfway through http://wiki.apache.org/tapestry/Tapestry5RedirectException but LinkFactory is not a part of 5.2. This threads placement was fortuitously placed. Thanks Thiago. Thiago H. de Paula Figueiredo wrote: > > On Thu, 01 Jul

Re: Redirect page

2010-07-01 Thread Thiago H. de Paula Figueiredo
On Thu, 01 Jul 2010 15:09:04 -0300, Chanticleer wrote: but honestly, how hard can it be for someone to include a simple redirect() in their framework? Tapestry already provides a very elegant and flexible way of doing redirects, so I think there's no need for a redirect() method. anyway,

Re: Redirect page

2010-07-01 Thread Thiago H. de Paula Figueiredo
On Thu, 01 Jul 2010 14:44:57 -0300, Chanticleer wrote: i meant a metaphorical beating :) :) but do you think you can share me the code to do that redirect? i cant for the life of me figure it out. thanks The documentation is here: http://tapestry.apache.org/tapestry5.1/guide/pagenav.ht

Re: Redirect page

2010-07-01 Thread Chanticleer
e- > From: Chanticleer > Date: Thu, 1 Jul 2010 10:44:57 > To: > Reply-To: "Tapestry users" > Subject: Re: Redirect page > > > i meant a metaphorical beating :) but do you think you can share me the > code > to do that redirect? i cant for the life

Re: Redirect page

2010-07-01 Thread Adam Saltiel
:57 To: Reply-To: "Tapestry users" Subject: Re: Redirect page i meant a metaphorical beating :) but do you think you can share me the code to do that redirect? i cant for the life of me figure it out. thanks Thiago H. de Paula Figueiredo wrote: > > On Thu, 01 Jul 2010 11:56

Re: Redirect page

2010-07-01 Thread Chanticleer
i meant a metaphorical beating :) but do you think you can share me the code to do that redirect? i cant for the life of me figure it out. thanks Thiago H. de Paula Figueiredo wrote: > > On Thu, 01 Jul 2010 11:56:48 -0300, Chanticleer > wrote: > >> I have no idea why it should be so hard to d

Re: Redirect page

2010-07-01 Thread Thiago H. de Paula Figueiredo
On Thu, 01 Jul 2010 11:56:48 -0300, Chanticleer wrote: I have no idea why it should be so hard to do redirects. Its such an integral part of web apps. What's hard about creating one onActivate() method that returns a page instance, a page class instance or a java.util.URL? this Howard g

Re: Redirect page

2010-07-01 Thread Chanticleer
I have no idea why it should be so hard to do redirects. Its such an integral part of web apps. this Howard guy must be beaten Benny Law wrote: > > I wish it were built into Tapestry 5 too. It was in previous versions. I > don't fully understand why Howard took it out, and I don't know of any

Re: Redirect page

2009-09-10 Thread Xuan Tran Le
Thank you. I hope it works. On Thu, Sep 10, 2009 at 7:32 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Thu, 10 Sep 2009 01:18:11 -0300, Xuan Tran Le > escreveu: > > -- B class - >> @InjectPage >> private C c;//page C >> >> Object onActivate() { >> ret

Re: Redirect page

2009-09-10 Thread Thiago H. de Paula Figueiredo
Em Thu, 10 Sep 2009 01:18:11 -0300, Xuan Tran Le escreveu: -- B class - @InjectPage private C c;//page C Object onActivate() { return c; } This should do the redirection. If not, try making your onActivate method public. You could also return C.class. All you need

Re: Redirect page

2009-09-09 Thread Benny Law
I wish it were built into Tapestry 5 too. It was in previous versions. I don't fully understand why Howard took it out, and I don't know of any built-in mechanism to abort the current page and redirect to another. I guess this is why somebody created the wiki entry. I followed it (with some modific

Re: Redirect page

2009-09-09 Thread Xuan Tran Le
Thanks you so much. Maybe I have to follow this link: http://wiki.apache.org/tapestry/Tapestry5RedirectException Is there any built-in for this? I think that my problem is rather common. Why don't you make it be a tapestry built-in? On Thu, Sep 10, 2009 at 11:30 AM, Benny Law wrote: > I would t

Re: Redirect page

2009-09-09 Thread Benny Law
I would try something like this: in B class... @PageAttached private void redirectToC() { // ... throw new RedirectException("..."); // URL for C } You will need to create RedirectException. I believe there is something in the wiki on how to handle this exception in AppModule. Hope thi