Hi,

I register some DynamicWebResources in my Application's init method, as well as mount them (in a loop, a different one for every locale):

        getSharedResources().add(name, resource);
mountSharedResource("/downloads/" + name, new ResourceReference(name).getSharedResourceKey());

I was wondering if there was another way to get the shared resource key without having to construct a throwaway resource reference.

Futherhmore, in a web page I want to link to the shared resources, i.e, I thought of using a ResourceLink. However, I was wondering how I can make sure that the resource being linked to is the correct (localized) resource. (They're generated PDF's, one in English, one in Dutch, and I want the link to point to the correct one depending on the locale). My currentsolution is just to have 2 links and override isVisible() on each of them to check the locale, but I don't know if that's the "correct" way to go about it.

Regards,
Sebastiaan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to