Isnt the getResourceKey() returning exactly the name? It should
because else the first call to shared resources with just the name
doesnt make much sense! Those should be the same.

Also doesnt ResourceLink uses LocalizedImageResource? That one takes
care of that. But i guess it needs a resource per locale also in the
shared resources. So that the shared resource key is there for all the
locales.

On 2/24/08, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to