Hello,
I try to execute the "deleteActions" component from within a class extending "AbstractWork" like this :
return (DeleteActions) SeamComponentCallHelper.getSeamComponentByName("deleteActions");
But this throw the exception bellow :
java.lang.IllegalStateException: No application context active
at org.jboss.seam.Component.forName(Component.java:1902)
at org.nuxeo.ecm.platform.ui.web.util.SeamComponentCallHelper.getSeamComponentByName(SeamComponentCallHelper.java:73)
I try the code below to activate the application context, without success:
Contexts.getApplicationContext();
Is it the good way to call a seam component ?
Thank you.