Thanks for your reply. As I understand, I do no need to create such service
from my module class. There is one tapestry service called
IgnoredPathsFilter already. Also, from url:
http://tapestry.apache.org/tapestry5.1/guide/conf.html , it does not talk
about to create such service when I have contributeIgnoredPathsFilter(
Configuration<String>
> configuration);
Thanks.


On Mon, Jun 29, 2009 at 1:15 PM, nille hammer
<tapestry.nilleham...@winfonet.eu> wrote:

> Hi Haipeng,
>
> > but this one is not called:
> >  public static void contributeIgnoredPathsFilter(Configuration<String>
> > configuration)
> >       {
> >         configuration.add("/dwr/.*");
> >         configuration.add("/scripts/.*");
> >         configuration.add("/logout");
> >
> >       }
> The contribution method is called by a builder method for a service that
> accepts your configuration as method parameter. I assume you want to build a
> service that implements  "RequestFilter". So do you have sth. like the
> following in your module class?
>
> public  RequestFilter buildIgnoredPathsFilter(final Collection<String>
> contributions) {
>    return new IgnoredPathsFilter(contributions);
> }
>
> Regards, nillehammer
>
> ==
> http://www.winfonet.eu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Haipeng Du
Salt Lake City

Reply via email to