Hi
I have built a new custom panel(custompanel.java) with 12 text fields. It
has a configuration file called custompanel.properties which has something
like 
component1.required=true
component2.required=true
component1.maxlength=200

These properties can be overridden by page.properties. When I read the
properties file from the constructor, 
new StringResourceModel(id, this, null).getObject().toString()
i did not get overriden values. Also I got some warn that I am trying to
access property before rendering the component. So I moved the constructing
stuff to the onBeforeRender method which then picked the correct overridden
values. But the problem is validation errors are missed.

Anybody used the properties file for the configuration of panel ?

-----
http://ntsrikanth.blogspot.com/
-- 
View this message in context: 
http://www.nabble.com/Validation-on-Custom-Panel-tp19879065p19879065.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to