cancel
Showing results for 
Search instead for 
Did you mean: 

Action Evaluator property injection

enrico_it
Champ in-the-making
Champ in-the-making
Hi all,
in my web-client-config-custom.xml  I have mapped an action with an evaluator.
In the <evaluator> element the complete class name is specified.
My question now is: is it possible to inject a Spring managed bean in this element?
I'd rather prefer to specify my evaluator in this way :
<evaluator>#{MyEvaluator}</evaluator>
because inside the evaluator I need to use some Alfresco Services.
Thank you!
1 REPLY 1

cbosdonnat
Champ in-the-making
Champ in-the-making
Hi,

The evaluator is fetched from org.alfresco.web.ui.repo.component.evaluator.ActionInstanceEvaluator.getEvaluator(). As a Class.forName is used, you can't use a spring context…

What do you want to do with Alfresco service ? you already have everything in the Node object…

HTH