AnsweredAssumed Answered

Unable to find properties file

Question asked by darkling235 on Jul 18, 2007
Hi. I'm working on making a custom action for my alfresco. It's being made purely for proof of principal at the moment. All it is supposed to do is register the node print a brief message to a log file and then exit.

However when it fires it immediately complains that a required parameter has not been set in the resource file. I've been doing some checking and it seems that the action can't even find the resources.

The weird thing is it still doesn't seem to access them even when I have copied and pasted the data into another properties file which would be loaded, or into webclient.properties which I believe is the default.

This is my action-services-context.xml code, the relevant parts anyway


<bean id="Flush" class="org.csm.alfresco.action.executer.AlfrescoCacheImpl" parent="action-executer">
          <property name="nodeService">
             <ref bean="nodeService" />
          </property>
         
          <property name="publicAction">
             <value>true</value>
          </property>
    </bean>
   
   <!– I18N –>
  
   <bean id="actionResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
       <property name="resourceBundles">
          <list>
             <value>alfresco.messages.action-service</value>
             <value>alfresco.messages.action-config</value>
             <value>alfresco.messages.Flush</value>
          </list>
       </property>
   </bean>




The properties file is very simple (Flush.properties)

#CacheFlush
Flush.title=Flush Alfresco Cache
Flush.description=Flush Alfresco Cache
Flush.aspect-name.display-label=Flush Alfresco Cache
Flush.aspect-name=Flush Alfresco Cache

The action asks for a parameter called aspect-name via

getParamDisplayLabel("aspect-name")

but it always returns null.

I can use

getDescriptionKey();
and
getTitleKey();

to return

Flush.description
and
Flush.title

but I'm not sure if that means it's found the file or is just postulating what the file should look like. Help would be VERY welcome, thanks

Outcomes