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
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
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
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
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!
---