On Thu, Feb 14, 2008 at 5:20 PM, Andrew Robinson <[EMAIL PROTECTED]> wrote: > Why reinvent the wheel? There are technologies that already do this.
+1 on that. -M > > See here for "on-load" functionality: > > http://wiki.apache.org/myfaces/Execute_action_on_page_load?highlight=%28onload%29 > > Seam has page security: > > http://docs.jboss.com/seam/2.0.1.GA/reference/en/html/security.html > > ACEGI seems to be pretty popular on the list: > > http://wiki.apache.org/myfaces/JSF_and_Acegi > > -Andrew > > > > On Thu, Feb 14, 2008 at 8:44 AM, Sertic Mirko, Bedag <[EMAIL PROTECTED]> > wrote: > > > Thank you a lot. > > Thats a very good tip. > > > > I am experimenting to implement the following usecase: > > > > Before a given view is displayed, I want to intercept the rendering, check > if > > Access is allowed. If its allowed, I want to render the response. If not, > I want > > to forward the user to a login page. > > > > Currently, I am using a PhaseListener. It is running for the > RENDER_RESPNSE phase. > > Now, now do I implement the tricky part? I know if a user is allowed the > view > > a given view, but how do I cancel rendering and forward to another page? > > > > Is there any other good solution available for this usecase? > > > > Thanks a lot > > Mirko > > > > > > -----Ursprüngliche Nachricht----- > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Gesendet: Donnerstag, 14. Februar 2008 12:35 > > An: MyFaces Discussion > > Betreff: Re: Access Component tree from a Servlet Filter > > > > Sertic Mirko, Bedag schrieb: > > > > > > [EMAIL PROTECTED] > > > > > > I need to access the component tree from a sevlet filter, e.g. if there > > > > > > is a view to restore. I also need to detect if there is no view to > > > restore, > > > > > > and I need to do that within a ServletFilter. Is this possible, and how > > > > > > should I do that? Are there any examples available? > > > > > > > http://wiki.apache.org/myfaces/AccessFacesContextFromServlet > > > > > > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org

