Re: Best way to add a MarkupFilter

2007-09-02 Thread David Leangen
Hi, Eelco, Well... looking at the other filters, the key to this is getting the ContainerInfo from the Markup, since ContainerInfo has a getLocale() method. The best example of this is WicketMessageTagHandler, whose constructor requires the ContainerInfo in its constructor: public WicketMessa

Re: Best way to add a MarkupFilter

2007-09-01 Thread Eelco Hillenius
On 8/30/07, David Leangen <[EMAIL PROTECTED]> wrote: > > Ok, thanks! > > I've been looking for a way to somehow attach a Session to this filter, > but can't see one. > > Essentially, I am trying to grab certain tags (such as ) and add the > attribute lang="en" (or whatever, according to the current

Re: Best way to add a MarkupFilter

2007-08-30 Thread David Leangen
Ok, thanks! I've been looking for a way to somehow attach a Session to this filter, but can't see one. Essentially, I am trying to grab certain tags (such as ) and add the attribute lang="en" (or whatever, according to the current locale). Tried looking at the Page component, too, but didn't se

Re: Best way to add a MarkupFilter

2007-08-30 Thread Matej Knopp
Hi, but the default factory doesn't do much, just creates markup parse. You have to create your own markup factory, it's trivial. IMarkupSettings.setMarkupParserFactory(new IMarkupParserFactory() { public MarkupParser newMarkupParser(final MarkupResourceStream resource) { MarkupParser

Best way to add a MarkupFilter

2007-08-29 Thread David Leangen
What's the best way to add a markup filter to my app? I noticed that in the settings I can override the MarkupParserFactory and provide my own filter, but that is not what I want to do. I just want to use the default factory, but add my own filter. Thanks! ---