cancel
Showing results for 
Search instead for 
Did you mean: 

custom action handlers not being accepted?

esource
Champ on-the-rise
Champ on-the-rise
in web-client-config-custom.xml, I created my own action-handlers entry:


<config evaluator="string-compare" condition="Action Wizards">
<action-handlers>
<handler name="add-features" class="com.custom.action.handler.AddFeaturesHandler" />
</action-handlers>
</config>

But when I try to retrieve it in code, I don't get back com.custom.action.handler.AddFeaturesHandler like I would expect, but instead get the default
org.alfresco.web.bean.actions.handlers.AddFeaturesHandler.  It seems almost as if web-client-config-custom.xml is not replacing the default.  What's going on?
  


         ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance());
         Config wizardCfg = svc.getConfig("Action Wizards");
         if (wizardCfg != null)
         {
            ConfigElement actionHandlerCfg = wizardCfg.getConfigElement("action-handlers");
            if (actionHandlerCfg != null)
            {
               this.actionHandlers = new HashMap<String, IHandler>(20);
              
               // instantiate each handler and store in the map
               for (ConfigElement child : actionHandlerCfg.getChildren())
               {
                  String actionName = child.getAttribute("name");
                  String handlerClass = child.getAttribute("class");
.
.
.

2 REPLIES 2

lamba
Champ on-the-rise
Champ on-the-rise
Hi,

I am also having a similar requirement.

Did you resolved the problem ?

Thanks

lamba
Champ on-the-rise
Champ on-the-rise
Solved Smiley Happy
thanks.