Are you sure it really does? I use Wicket, though not (yet) with Guice,
and I can't think of any particular reason.
Max.
Ah, thought it might be that - so, no, setting the name is not the
important thing here at all.
If you have a look at WicketFilter's sourcecode you can see that it's
trying to figure out what the root path assigned to WicketFilter within
your webapp is - and that the Wicket developers have provided a way for
you to pass that via a filter configuration parameter if your setup is
such that Wicket can't fish it out of web.xml itself.
There does appear to be one small bug in WicketFilter though - the part
where it tries to trap exceptions from determining the url-pattern
doesn't catch IllegalArgumentException.
Max.
I'd imagine it's a consequence of no-one thinking anyone would ever care
about names of servlets/filters, so why bother exposing a useless API.
> On Aug 24, 12:02 pm, "Dhanji R. Prasanna" <dha...@gmail.com> wrote:
>> Also note that you don't have to choose either or, you can configure
>> WicketFilter with web.xml and everything else with Guice Servlet, while we
>> sort this issue out. It's pretty ridiculous that the name of the filter is
>> significant to web frameworks, however.
I can't speak for Tapestry, but as far as I can see from the code,
Wicket only cares to the extent of wanting to discover the base URL
within your webapp which is assigned to Wicket, and it provides a filter
init-param for you to override the default logic which attempts to parse
web.xml.
Max.