Ok I already found out that you need to register a handler also, so
the registry in application becomes:

                getPageSettings().addComponentResolver(new EnclosureResolver());
                getMarkupSettings().setMarkupParserFactory(new 
MarkupParserFactory() {
                        @Override
                        public MarkupParser 
newMarkupParser(MarkupResourceStream resource) {
                                MarkupParser parser = 
super.newMarkupParser(resource);
                                parser.registerMarkupFilter(new 
EnclosureHandler());
                                return parser;
                        }
                });

I took the liberty to update the corresponding wiki page:
http://cwiki.apache.org/confluence/display/WICKET/Wicket%27s+XHTML+tags

Wouter

On 3/19/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use the wicket:eclosure tag in my application, I am
> using a 2.0 snapshot. I've added
> "getPageSettings().addComponentResolver(new EnclosureResolver());" to
> my application init as instructed in the javadoc, however I still get
> the following trace:
>
> java.text.ParseException: Unkown tag name with Wicket namespace:
> 'enclosure'. Might be you haven't installed the appropriate resolver?
>      at 
> wicket.markup.parser.filter.WicketTagIdentifier.nextTag(WicketTagIdentifier.java:107)
>
> Could it be because EncloseResolver doesn't have the static block to
> register it as a well know tag, so shouldn't the following be added to
> the class?
>
>         static
>         {
>                 // register "wicket:enclosure"
>                 WicketTagIdentifier.registerWellKnownTagName("enclosure");
>         }
>
> Wouter
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to