Hi,

you mean for i8n issues?


if you want to use properties on your pages you dont need to mess with the file, just use it in your label or message-resource, look here for some simple cases: http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html

Best,

Korbinian

tbt schrieb:
Hi,

I like to know a way to read a property file the wicket way. Currently i'm
using the following code snippet but i get the
PackageResourceBlockedException.

/*.......................................*/
Properties properties = new Properties();
properties.load(PackageResource.get(ApplicationProperties.class,
    "app.properties").getResourceStream().getInputStream());
String propertyName = properties.getProperty(name);
propertyFile.close();
return propertyName;
/*.......................................*/

Is this the correct way to get property files using wicket. My
app.properties file and ApplicationProperties.class is in the same package.
I like to know a way to load property files which are stored in the same
package as the class file.

Thanks
tbt



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to