I'm trying to load localized versions of an image with a
ResourceReference. The javadoc says:

"The locale and/or style do not need to be set on a resource reference
because those values will automatically be determined based on the
context in which the resource is being used."

Actually, it does not. No matter what locale is set in the session,
ResourceReference is returning the same base version of the image when
used like that:

new Image("image", new ResourceReference(this.getClass(),
"res/imagepack1/localized_testimage.gif"));

res/imagepack1 contains the localized images as well, e.g.
localized_testimage_de.gif.

I'm using 1.4-rc4 right now. Am I doing something wrong or does it just
not work? 

Thanks for any hints on that,
Roman

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to