RE: Trying to Implement RedirectException in Tapestry 5

2008-08-21 Thread Ben Wong
riginal Message- From: Chris Lewis [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 10:04 PM To: Tapestry users Subject: Re: Trying to Implement RedirectException in Tapestry 5 Ben Wong wrote: > I decided against the dispatcher approach for the reasons ville.virtanen > brough

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Chris Lewis
Ben Wong wrote: > I decided against the dispatcher approach for the reasons ville.virtanen > brought up. The dispatcher will have to know what pages are secured and > which aren't. > > Whatever authentication system you use will be burdened with the same issue. After all it is a critical var

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Filip S. Adamsen
L PROTECTED] Sent: Wednesday, August 20, 2008 9:30 AM To: Tapestry users Subject: Re: Trying to Implement RedirectException in Tapestry 5 I love the dispatcher approach for this, I like it simply because it removes security concerns from pages and is lightweight and customizable. - Origin

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Andreas Andreou
Yea - to quote you from http://issues.apache.org/jira/browse/TAPESTRY-647 "Which just goes to show why using exceptions for this kind of control flow really is a bad idea! I'll fix it on my next framework, promise!" :) On Wed, Aug 20, 2008 at 3:45 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

RE: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Ben Wong
- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 9:30 AM To: Tapestry users Subject: Re: Trying to Implement RedirectException in Tapestry 5 I love the dispatcher approach for this, I like it simply because it removes security concerns from pages and is light

RE: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Ben Wong
, not the standard tapestry one. I don't know if this makes a difference. Thanks, Ben -Original Message- From: 9902468 [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 6:23 AM To: users@tapestry.apache.org Subject: Re: Trying to Implement RedirectException in Tapestry

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 11:55:03 -0300, Markus Joschko <[EMAIL PROTECTED]> escreveu: Just want to throw in a non security related use case. Imagine a wizard where the user jumps to the url of step3 before completing step1. A dispatcher approach would be overkill and the onactivate method seems to

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Markus Joschko
pages and is lightweight and customizable. > > > - Original Message - > From: "9902468" <[EMAIL PROTECTED]> > To: users@tapestry.apache.org > Sent: Wednesday, 20 August, 2008 4:30:05 PM GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: Re:

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Peter Stavrinides
05 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Trying to Implement RedirectException in Tapestry 5 On a side note, it's a bad thing to hard code allowed roles to page, we use a service that is queried if this role is allowed to access this page (Or execute this action.).

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
request cycle... Thanks for the >> pointer! >> (Always nice to do things right and to learn :)) > > :) > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional com

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
gt; And your approach occurs earlier in the request cycle... Thanks for the >> pointer! >> (Always nice to do things right and to learn :)) > > :) > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] >

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 09:38:36 -0300, 9902468 <[EMAIL PROTECTED]> escreveu: One possibility yes, but that approach requires to keep a list of secured pages to allow un-authorized users access non-secure pages. (Pages could of course be annotated to be secure or use marker interface.) That's

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
be a better place to do these > checks? > > Thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Trying-to-Implem

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Thiago H. de Paula Figueiredo
Em Wed, 20 Aug 2008 08:23:12 -0300, 9902468 <[EMAIL PROTECTED]> escreveu: I have also noticed that onActivate is a bad place to check general access rights as you cannot be sure that the check implemented to base class is not overridden or if developer uses one of the onActivate(param) va

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Massimo Lusetti
On Wed, Aug 20, 2008 at 2:45 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Using exceptions for control flow was never one of Tapestry great > ideas; that's why its gone in Tapestry 5. Exceptions are exceptions, > representing things that have failed. > > In any case, the activate event is a

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread 9902468
gt; >> >> >> Thanks in advance, >> >> Ben Wong >> >> > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-19 Thread Howard Lewis Ship
Using exceptions for control flow was never one of Tapestry great ideas; that's why its gone in Tapestry 5. Exceptions are exceptions, representing things that have failed. In any case, the activate event is a good place to perform checks. The return vaslue from onActivate() (the name of the even

Trying to Implement RedirectException in Tapestry 5

2008-08-19 Thread Ben Wong
Hi everyone, We have been using Tapestry 3 + Spring + Acegi for the last three years and had a pretty decent integrated architecture going. Now we are trying to replace Tapestry 3 with Tapestry 5. One of the things I am trying to do is duplicate a base Tapestry page class that checks if the u