Send the exception. I doubt you need a name because that is primarily  
used to map a filter to a filter-mapping in the web.xml and serves  
little purpose beyond that. I'd be really surprised if Wicket was  
using this information.

-bp


On Aug 22, 2009, at 9:35 AM, Cafesolo wrote:

>
> Hi Max,
>
> In Wicket 1.4, the WicketFilter throws an exception if I configure it
> using Guice instead of web.xml.
>
> I think they made WicketFilter throw an exception if you don't specify
> a name because you need a <filter-mapping> in your web.xml file, which
> needs a <filter-name>...</filter-name> element. Correct me if I'm
> wrong, but a filter without a mapping is useless, so I think they
> wanted to throw a descriptive exception to make newbies lifes easier.
>
> Regards,
> -- Cafesolo
>
> On Aug 22, 9:15 am, Max Bowsher <[email protected]> wrote:
>> Cafesolo wrote:
>>> Hi Dhanji,
>>
>>> I don't know why it needs a name. It's a Wicket thing. I'm sure  
>>> there
>>> must be a good reason for this.
>>
>> Are you sure it really does? I use Wicket, though not (yet) with  
>> Guice,
>> and I can't think of any particular reason.
>>
>> Max.
>>
>>  signature.asc
>> < 1KViewDownload
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to