How to load resource bundle for inner class? using wicket 6.6 -
unable find property: 'registerform.agencyname.required' component: [class=com.brazil.clasadm.application.appnregister$appnregisterform].
my scenario like:
public class appnregister extends someotherclass { public appnregister() { add(new appnregisterform("registerform")); } class appnregisterform extends form { textfield agencyname= null; agencyname = new textfield("agencyname", new propertymodel(cac, "agencyname")); agencyname .getlocalizer().getstring("registerform.agencyname.required", this); } }
i tried adding resource bundle names of appnregisterform.properties, appnregister$appnregisterform.properties , in same place of appnregister.java present. unable clear issue. suggestions on issue?
what appnregister
? must wicket markupcontainer there no extends ...
in code!
the inner class should static
able reach appnregister$appnregisterform
.
solutions:
- use
appnregister.properties
- use
wicket-package.properties
both should next appnregister.class
in classpath.
Comments
Post a Comment