You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dale Ogilvie <Da...@trimble.com> on 2012/03/22 21:10:30 UTC

StyleSheetReference change between 1.4.19 and 1.4.20

Hi there,

 

We had code using 1.4.19 for style sheet references:

 

add(new StyleSheetReference("stylesheet_popup", Register.class,
"/nz/co/acme/accounts/styles/popup.css"));

 

Upgrading to 1.4.20 we had to modify our references to remove the
leading slash:

 

add(new StyleSheetReference("stylesheet_popup", Register.class,
"nz/co/acme/accounts/styles/popup.css"));

 

What is behind this change? Was it intentional?

 

Thanks

 

Dale

 


Re: StyleSheetReference change between 1.4.19 and 1.4.20

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I think the reason is that
org.apache.wicket.util.lang.Packages#absolutePath(String, String) has
been improved to better calculate relative paths in packages.
See org.apache.wicket.util.lang.PackagesTest and file a ticket if you
think there is a place for improvement.

On Thu, Mar 22, 2012 at 10:10 PM, Dale Ogilvie <Da...@trimble.com> wrote:
> Hi there,
>
>
>
> We had code using 1.4.19 for style sheet references:
>
>
>
> add(new StyleSheetReference("stylesheet_popup", Register.class,
> "/nz/co/acme/accounts/styles/popup.css"));
>
>
>
> Upgrading to 1.4.20 we had to modify our references to remove the
> leading slash:
>
>
>
> add(new StyleSheetReference("stylesheet_popup", Register.class,
> "nz/co/acme/accounts/styles/popup.css"));
>
>
>
> What is behind this change? Was it intentional?
>
>
>
> Thanks
>
>
>
> Dale
>
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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