-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I need to customize some zul labels on a deployment, but I cannot copy my zk-label.properties in the web application's WEB-INF directory. It must be hold within a library jar. According to the customization and packing code guide it's possible to independently configure any jar containing zk stuff by including a metainfo/zk/config.xml file. However, the means to specify label locations are the same as those in the main config.xml file: either absolute file locations or WEB-INF locations. I've peeped into the WebManager and Labels code and there is no way to set up an alternative label locator (a custom, classpath based one). Well, I've tried to register something like
Labels.register( new LabelLocator() { public URL locate( Locale locale ) throws Exception { return getClass().getClassLoader().getResource( "metainfo/zk/my-own-zk-label.properties" ); // For every locale, so that it's easier to see whether it works or not } } );
in my WebAppInit, with no success.
Any suggestion will be welcome.
César Varona
Cesar,
please give us more information how you solve this .
many thanks
Stephan
Asked: 2012-05-18 07:23:03 +0800
Seen: 204 times
Last updated: May 20 '12