Thanks Igor, I did as you said - got the source also out of the Maven2 repo
(easier :) and it is working now with this one line in app init() as
follows:
WicketMessageTagHandler.enable = true;
Thanks for your help,
Peter.
On 1/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the code i wrote was against 1.3, im not sure how it is different against
1.2.x, you have 1.2.4 source code right (i dont have it checked out)? just
look at how other filters are registered there.
-igor
On 1/20/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Thanks Igor,
>
> I'm using 1.2.4 - and now a bit confused with these compilation
> problems:
>
> 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the
> constructor. Where is the best place to get that from?
>
> 2) and the super.initMarkupFilters(parser) line does not compile either.
>
> I see that as per apidocs, the compile problem is expected:
>
>
>
http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html
>
> However from SVN I see that what you provided should work.
>
>
>
http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup
>
> What am I missing?
>
> Thanks,
>
> Peter.
>
> On 1/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > application.init() {
> > super.init();
> > getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory()
> > {
> > protected void initMarkupFilters(final MarkupParser
> > parser)
> > {
> > super.initMarkupFilters (parser);
> > parser.registermarkupfilter(new wicketmessagetaghandler());
> > }
> >
> >
> > -igor
> >
> >
> > On 1/20/07, Peter Thomas < [EMAIL PROTECTED]> wrote:
> >
> > > make sure you have WicketMessageTagHandler added to markupparser.
> > > >
> > > > -igor
> > > >
> > >
> > > I had the same question - but now how exacty do I add
WicketMessageTagHandler
> > > to markupparser ? I am trying to do this in the application but
WicketMessageTagHandler
> > > needs a ContainerInfo. Help!
> > >
> > > - Peter
> > >
> > >
-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user