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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.