You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by pete swulius <ps...@gmail.com> on 2010/01/31 22:41:58 UTC

property file location feature request (ComponentStringResourceLoader)

Everyone,

I am curious.  Why are .properties files not located in the same way as
.html?  I've overridden:

[ResourceStreamLocator]
public IResourceStream locate( Class<?> clazz, String aPath, String aStyle,
Locale aLocale, String anExtension )

I notice that property file locating doesn't invoke this method, but only
invokes the lesser arg version with the style/variation/locale already
embedded in the path.  This is an inconvenience for me because I'm trying to
inspect the style during location.  Perhaps I shouldn't be doing what I'm
trying to do, but after reading the docs, I expected locating to work the
way it does for .html, but .properties threw me.

Thanks!  And again, thanks to all contributors for making such an awesome
product.

Peter Swulius

Re: property file location feature request (ComponentStringResourceLoader)

Posted by pete swulius <ps...@gmail.com>.
For future reference.
https://issues.apache.org/jira/browse/WICKET-2713

Re: property file location feature request (ComponentStringResourceLoader)

Posted by Igor Vaynberg <ig...@gmail.com>.
i think this is due to historical reasons, the path is kept together
in references as a single string. feel free to add an rfe for this, i
think we are already working on this in 1.5 but an rfe in jira will
help us remember.

-igor

On Sun, Jan 31, 2010 at 1:41 PM, pete swulius <ps...@gmail.com> wrote:
> Everyone,
>
> I am curious.  Why are .properties files not located in the same way as
> .html?  I've overridden:
>
> [ResourceStreamLocator]
> public IResourceStream locate( Class<?> clazz, String aPath, String aStyle,
> Locale aLocale, String anExtension )
>
> I notice that property file locating doesn't invoke this method, but only
> invokes the lesser arg version with the style/variation/locale already
> embedded in the path.  This is an inconvenience for me because I'm trying to
> inspect the style during location.  Perhaps I shouldn't be doing what I'm
> trying to do, but after reading the docs, I expected locating to work the
> way it does for .html, but .properties threw me.
>
> Thanks!  And again, thanks to all contributors for making such an awesome
> product.
>
> Peter Swulius
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org