cancel
Showing results for 
Search instead for 
Did you mean: 

Spring injections priority

sisao
Champ in-the-making
Champ in-the-making
Hi guys,

1)While trying to customize alfresco i've checked the application-context.xml document in WEB-INF/classes/alfresco…
We can override all the *.-context.xml documents in there by using the tomcat/share/classes/alfresco/extension/ folder documents.
We can add our beans definitions in WEB-INF/classes/alfresco/extension, and we can use this folder for overridding actions also.
Well i've got a web-client-config-custom.xml document in both the extension folder…but i'm only modifying the one in the shared path as per wiki howtos.
Which one is processed at last?

i.e. I cannot have <initial-location>companyhome</initial-location> in web-client-context.xml to work, even though i have pasted the whole config element into the web-client-config-custom.xml in the shared folder.
When i create a new user i have to manually set the start page by logging in and using the personal configuration panel.


2)Shall i overwrite those documents into alfresco.war when i'll get to a definitive configuration? I've got a language pack installed and i have to re-add the jar library again sometime as it is removed from the lib folder into the alfresco webapps dir. Any clue about this?

Regards.
2 REPLIES 2

space
Champ in-the-making
Champ in-the-making
<alfresco-config>
   <!–  CSE changes throughout file –>
   <config evaluator="string-compare" condition="Client" replace="true">
      <client>

         <!– The default location to display when the browse screen is first shown –>
         <!– This value should be one of 'myalfresco', 'userhome', 'companyhome' or 'guesthome' –>
         <initial-location>companyhome</initial-location>
      </client>
   </config>


This should work.  Notice the replace="true"

space
Champ in-the-making
Champ in-the-making
The previous goes in extension directory in the web-client-config-custom.xml file.