cancel
Showing results for 
Search instead for 
Did you mean: 

Bind service to an Action Evaluator

seb55555
Champ in-the-making
Champ in-the-making
Hello,
In my web-client-config-custom.xml I have mapped an action with an evaluator.

In my evaluator, I want to retrieve the parent of my current node and read content of other node in the same space.

1) Can I bind a service to an Evaluator ? And what the good practice to do this with an Evalutor ?

2) Can I get the parent directly from the Node instance (parameter of evaluate) ?


Thanks for your answers.

Sébastien
1 REPLY 1

seb55555
Champ in-the-making
Champ in-the-making
I use the following code in my Evaluator :


NodeService nodeService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getNodeService();

Is this the good way to do it ?