[jboss-dev-forums] [Design of JBoss Portal] - Re: Localization key standardization

Antoine_h do-not-reply at jboss.com
Mon Aug 13 16:20:58 EDT 2007


It is good to have the properties grouped together in "packages".

it allow also to have a "kind of path", to get to the property.
a bit like XMLPath, or .... many other stuf, like ant properties, etc....

so using the package/class way of doing of Java is good : minus caracters and dots :

identity.registration.personal.info=xxxxx
identity.registration.personal.info.adress.main=xxxxx

the full name allow not to confuse when searching (grep or eclipse search or any...) for a property.
when you see the name in a log error, or a "show the property name if not found in the screen", it is important not to get 58 files that have "the string".

For name completion in editor :
 - the property file editor of exadel JSF in Eclipse does not do the name completion.
 - the ant editor do it for the ant properties. very convenient.

I saw this in Java Awt samples/tutorial, long time ago, and that the way I always do since.

Some examples of that way in this tutorial :
http://adiguba.developpez.com/tutoriels/j2ee/jsp/jstl/#L3.1
and 
http://adiguba.developpez.com/tutoriels/j2ee/jsp/jstl/#L-fmt:bundle



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073719#4073719

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073719



More information about the jboss-dev-forums mailing list