Description
I'm trying to have a ResourceReference that is not entirely static, but takes into account the current session's locale and style settings, even when they change. I.e., I want to have the page style change when the session style setting changes, without having to completely rebuild the page.
PackageResourceReference in 1.5 already does this (in getUrlAttributes(), together with getCurrentStyle() et al), but as far as I can tell, ResourceReference in 1.4 does not.
The default behavior of 1.4-ResourceReference should not be changed, but it would be nice to have a flag that allows to have the 1.5-like behavior if needed. I'll be attaching a patch to that effect.