Re: t5: dispatcher not fired in the start page

2008-03-09 Thread Filip S. Adamsen
Hi Angelo, Well, let's say I have a filter called CookieLoginRequestFilter that implements ComponentEventRequestFilter and PageRenderRequestFilter: public class CookieLoginRequestFilter implements ComponentEventRequestFilter, PageRenderRequestFilter { private final CookieLoginService co

Re: t5: dispatcher not fired in the start page

2008-03-08 Thread Angelo Chen
Hi Filip S, Can you show me sample code of doing that? here is my simple code: public boolean dispatch(Request request, Response response) throws IOException { Cookie[] cookies = cookieSource.getCookies(); if (cookies != null) { for (Cookie c : cookies) {

Re: t5: dispatcher not fired in the start page

2008-03-08 Thread Filip S. Adamsen
Angelo, I do exactly that in the request handling pipeline using a ComponentEventRequestFilter and a PageRenderRequestFilter. Works beautifully and let's you get the page name etc. easily from the supplied parameters. Pretty much doesn't get any easier than that. :) -Filip Angelo Chen skrev

Re: t5: dispatcher not fired in the start page

2008-03-08 Thread Angelo Chen
hi Howard, Thanks, cookieDispatcher check if a user cookie already exist, if yes, then it will log in the user using a login service, I don't know if it works with request handling pipelines. A.C. Howard Lewis Ship wrote: > > > What does CookieDispatcher do? It probably is a better fit for o

Re: t5: dispatcher not fired in the start page

2008-03-08 Thread Howard Lewis Ship
The Start page is a special case, and should be relegated to the "backwards compatibility" scrap heap. Recognizing the Start page is its own Dispatcher and is probably being processed before your CookieDispatcher. What does CookieDispatcher do? It probably is a better fit for one of the request