AnsweredAssumed Answered

Doubt in the JSP code:

Question asked by sherrymax on Oct 22, 2008
Latest reply on Oct 23, 2008 by mrogers
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}" /> <h:outputText 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.

Outcomes