hope this helps 

http://wiki.apache.org/jakarta-tapestry/UsingCustomResourceSourceForLibs
http://wiki.apache.org/jakarta-tapestry/ApplicationBorderComponent

Am Sunday 12 February 2006 18:54 schrieb Alan Chandler:
> 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

-- 
with best regards

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947

-= Programming today is a race between software engineers striving to build 
bigger and better idiot-proof programs, 
and the Universe trying to produce bigger and better idiots. So far, the 
Universe is winning. -- Rich Cook =-

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

Reply via email to