cancel
Showing results for 
Search instead for 
Did you mean: 

context.xml files and Share

mxc
Confirmed Champ
Confirmed Champ
Hi all,

I have a share amp that I am providing a language.propertes file for. In the module-context.xml file generated by the maven sdk it imports a service-context.xml file. If I place the resource loading bean definition in any of these file it does not get loaded.


       <bean id="addon_resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
        <property name="resourceBundles">
            <list>
                <value>alfresco.module.myaddon.messages.language</value>
            </list>
        </property>
    </bean>


I have tried moving the spring config file to different locations in share to get it to load but no luck.I also tried a malfromed file to see if it would throw an error if it was being loaded but again there was nothing. It looks like share is not loading custom spring framework config files.

If I am doing something wrong please let me know. If there is another way to add internationalisation to a share module let me know too.

thanks

1 REPLY 1

mxc
Confirmed Champ
Confirmed Champ
OK you need to make sure the spring *-context.xml files are under the /share/WEB-INF/classes/alfresco/web-extension folder.