>From what I can see in examples (eg. wicket-examples/../library/)
wicket searches for resource files with the same names as 'parent'
HTML pages, but extension '.properties'.
Example:
BookDetails.java
BookDetails.html
BookDetails.properties
BookDetails_pl.properties
...
But sometimes there are key/value pairs that are of global scope, not
just a single page.
What is the correct Wicket approach to use/specify alternative,
GLOBAL, property file(s)
across an application?
I'd like to specify somewhere (Application class, web.xml params to
wicket servlet, maybe some wicket.properties config file) a file name
or a list of file nams with global resources
resources.global=com.blah.wicket.ErrorMessages, \
com.blah.wicket.Labels, \
com.blah.wicket.extra.MenuLabels
The expected behavior would be to look for files by page name first,
then - if key was not found, look for globals in the specified order.
Also, is there any easy way to specify custom resource provider, eg.
database based?
How can I achieve this with Wicket?
Darek
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user