cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in the JSP code:

sherrymax
Champ in-the-making
Champ in-the-making
Hi,

I was going through the browse.jsp of Web-Client project and got a few doubts while understanding the code.

1.    <%– load a bundle of properties with I18N strings –%>
   <f:loadBundle basename="alfresco.messages.webclient" var="msg"/>

What is happening here? from the comment I can get that, it is loading a properties file and its values. But I am not able to find out what all properties file are loaded and from where they are taken?

2. <h:graphicImage id="img-rule" url="/images/icons/rule.gif" width="16" height="16" title="#{msg.rules_count}" /> <hSmiley SurprisedutputText value="(#{NavigationBean.ruleCount})" id="rulemsg1" style="vertical-align:20%" />

In the bolded piece, I understand that msg is a variable that was created while loading the bundle. But I searched among the whole files for rules_count and unable to find it in any file. To my understanding this will be the key of some value in a property file. Please let me know, if I am in the right path.

Please help me out in clearing these questions.

Thanks,
Sherry.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Look at the file webclient.properties in the Web-Client project.

This contains the following line:
rules_count=Number of rules applied to this Space

So if we are in the default locale "Number of rules applied to this Space" is displayed on the web page.

sherrymax
Champ in-the-making
Champ in-the-making
Hi,

Thanks, mrogers. Good news finally.
I am able to find webclient.properties file at C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\messages.
But one thing, that i dont understand is, in my workspace, I cant find any webclient.properties file, in any projects.

Any idea, how it came to the deployed webapp.

Thanks,
Sherry.

mrogers
Star Contributor
Star Contributor
On my Eclipse workspace (which is based on a co from svn) webclient.properties is in root/projects/web-client/config/alfreco/messages.

The ant build system has packaged the config directory into the classes directory of the alfresco web archive which has then been expanded by tomcat.