Newbie question: How do I use localization with deferred parsing?
Jacob Lauemøller <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm investigating the localization facilities in Barracuda and need some help.
How do I combine deferred parsing (XMLC re-load) with localization?
I have both things running nicely but cannot seem to find the right way to
combine them.
The localization example (HelloWorld4) in the Component Model Tutorial uses
the DefaultDOMLoader class to indicate the desired Locale when creating the
XMLC page object. However, the deferred parsing hints given on the News and
Status page tells me to use something along the lines of
...
if (xmlcFactory == null)
{
xmlcFactory = new XMLCDeferredParsingFactory(
new DocumentLoaderImpl(),
this.getClass().getClassLoader(),
new StreamXMLCLogger()
);
}
SimpleExampleHTML page =
(SimpleExampleHTML)xmlcFactory.create(SimpleExampleHTML.class);
How do I pass in the Locale in this case?
TIA,
Jacob