Up to now, I have been taking the simplistic approach to messages and putting
them all in myApplication.properties files.
This included a border component which I put in a library and then made into a
jar file and stored in tomcat's shared/lib directory - so that all my
applications could have a similar border.
In the java it did something like
getPage().getMessages().getMessage("key-string");
But as I develop this forward I want to do some more sophisticated things
(particularly with version numbers). Reading the userguide it hints at more
general message seaching, but it is not 100% explicit, so before I rip my
code to pieces to change things, I though I would ask here.
Assume I have a component called "Border" inside a library called "mylib", and
inside this library I have files Border.properties and mylib.properties.
These are all packed up into a jar file and placed in the shared/lib
directory.
If I have a application called MyApp with a page called MyPage with properties
file in the WEB-INF directory called MyApp.properties and MyPage.properties
If I replace the code currently in my Border component to and ignoring locales
for now
getMessages().getMessage("key-string")
What is the exact order of searching for the message key "key-string". I
think it will look in
Border.properties, mylib.properties, MyPage.properties, MyApp.properties
in that order, stopping at the first occurance of "key-string".
Am I correct?
or is it
Border.properties, MyPage.properties, mylib.properties, MyApp.properties
or something else
--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]