You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2015/06/30 13:42:58 UTC

Is it possible to load localized css resource with custom name.

Hello wicket friends,
Is it possible in wicket 1.4 to apply the same algorithm to load a css file
with a custom name. (not having name MyPanel.css)
Example: if my css file is named mycss.css and locale fr-FR I want to load
both mycss.css and mycss_fr_FR.css

Thanks,
Cosmin

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-load-localized-css-resource-with-custom-name-tp4671426.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Is it possible to load localized css resource with custom name.

Posted by cosmindumy <co...@yahoo.com>.
No, it is not implementing. 
Seems that the upper panel in hierarchy implements
IHeaderPartContainerProvider

I add css resource like this
add(CSSPackageResource.getHeaderContribution(Page.class, "mycss.css")); in
constructor.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-load-localized-css-resource-with-custom-name-tp4671426p4671429.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Is it possible to load localized css resource with custom name.

Posted by jkcool <jk...@gmail.com>.
Hi,

A bit more information would make it easy. 

Is your panel implementing IHeaderContributor  and your renderHead has
something like this ? 

public void renderHead(final IHeaderResponse response) {

        response.renderCSSReference(CSSRef);

    }

Regards,
Jay

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-it-possible-to-load-localized-css-resource-with-custom-name-tp4671426p4671427.html
Sent from the Users forum mailing list archive at Nabble.com.

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