You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by John Patterson <jd...@gmail.com> on 2007/11/29 21:31:30 UTC
Resource locale problem
Hi,
I have a <link> tag in the <head> for a css file and the generated
link includes the locale. Sometimes this is mystyles_en_US.css and
sometimes mystyles_en_GB.css. When it is the later, the file is not
found. How should I configure this correctly? Can I disable the
locale from being appended?
Thanks,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Resource locale problem
Posted by Johan Compagner <jc...@gmail.com>.
Can you make a jira issue with possible an unit test or quickstart
On 12/3/07, John Patterson <jd...@gmail.com> wrote:
> I have upgraded to the latest trunk and the problem still exists
>
> On 30 Nov 2007, at 01:40, Johan Compagner wrote:
>
> > What kind of resource is that?
> >
>
> I have simply used a <link> tag in the <head> and wicket is creating
> the resource. I can see that it is a PackageResource.
>
> > Normally package resources reference default to the locale for which
> > the resource is really loaded.
> >
>
> The Locale being passed to the LocaleResourceNameIterator is null and
> that causes no locale variations to be looked for.
>
>
> > Also if the is somehow a locale appended that isnt there then that
> > shouldnt matter because the resource should fallback.
> >
>
> This does not happen when the locale is null
>
> > So can you give us a little more sample code that you use?
> >
>
> There is no Java code - just the normal html link tag.
>
> The first time a page is requested that includes the CSS file the
> link has NO locale appended
>
> e.g resources/styles.css
>
> The next time the page is requested a local is appended
>
> e.g resources/styles_en_US.css
>
> But resources/styles_en_GB.css is not found
>
> If I request the resource before a page is requested then resources/
> styles_en_US.css is not found.
>
>
> Cheers,
>
> John
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Resource locale problem
Posted by John Patterson <jd...@gmail.com>.
I have upgraded to the latest trunk and the problem still exists
On 30 Nov 2007, at 01:40, Johan Compagner wrote:
> What kind of resource is that?
>
I have simply used a <link> tag in the <head> and wicket is creating
the resource. I can see that it is a PackageResource.
> Normally package resources reference default to the locale for which
> the resource is really loaded.
>
The Locale being passed to the LocaleResourceNameIterator is null and
that causes no locale variations to be looked for.
> Also if the is somehow a locale appended that isnt there then that
> shouldnt matter because the resource should fallback.
>
This does not happen when the locale is null
> So can you give us a little more sample code that you use?
>
There is no Java code - just the normal html link tag.
The first time a page is requested that includes the CSS file the
link has NO locale appended
e.g resources/styles.css
The next time the page is requested a local is appended
e.g resources/styles_en_US.css
But resources/styles_en_GB.css is not found
If I request the resource before a page is requested then resources/
styles_en_US.css is not found.
Cheers,
John
Re: Resource locale problem
Posted by Johan Compagner <jc...@gmail.com>.
What kind of resource is that?
Normally package resources reference default to the locale for which
the resource is really loaded.
Also if the is somehow a locale appended that isnt there then that
shouldnt matter because the resource should fallback.
So can you give us a little more sample code that you use?
On 11/29/07, John Patterson <jd...@gmail.com> wrote:
> Hi,
>
> I have a <link> tag in the <head> for a css file and the generated
> link includes the locale. Sometimes this is mystyles_en_US.css and
> sometimes mystyles_en_GB.css. When it is the later, the file is not
> found. How should I configure this correctly? Can I disable the
> locale from being appended?
>
> Thanks,
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org