cancel
Showing results for 
Search instead for 
Did you mean: 

ResourceBundle not getting !!

g_rathod
Star Contributor
Star Contributor
Hi,
I have used shareExtras build file.
It creates jar for share extension environment and when I am putting it to share/WEB-INF/lib  it is working good, but resource file is not picked up.
I kept my resource file at /config/alfresco/messages  folder. And respective entry is done inside custom-slingshot-application-context.xml.
<bean id="webscripts.test.resources" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list><value>alfresco.messages.demohome</value></list>
      </property>
   </bean>

Still when I open alfresco share page, it will showing me key only like .  demo.page.title /  demo.page.description.
Ideally it should pick up from config/alfresco/messages/demohome.properties.

My Extension stuff going into jar.

Any help on this ?.
1 REPLY 1

power
Champ in-the-making
Champ in-the-making
Hi g_rathod,
you can use like :

 <bean id="webscripts.resources.custom" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.messages.demohome</value>
         </list>
      </property>
   </bean>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.