Thanks,
I finally renamed my method "finalize" to "complete" (I overrided
finalize), "complete" return now "String, and EJB declarations are
cleaned and it's work....
I don't know if it comes from the String return, the name of the method
or EJB declaration... I'm too happy :)
Thanks Anahide
Thanks Dragos
Benjamin JALON
Dragos Mihalache a écrit :
Benjamin wrote:
Hi,
I'm a bit lost, I add a new Action button like that in my
actions-contrib :
<action id="finalizeBatch" link="#{batchActions.finalize()}"
enabled="true" label="eurmdm.finalize.batch"
icon="/icons/action_add.gif">
<category>SUBVIEW_UPPER_LIST</category>
<filter id="batch_imported">
<rule grant="true">
<type>EURMDM-LOT</type>
<type>Folder</type>
</rule>
</filter>
</action>
I made my action bean :
@Stateless
@Name("batchActions")
@Scope(SESSION)
@SerializedConcurrentAccess
public class BatchActionsBean implements BatchActions {
public void finalize() throws WMWorkflowException, ClientException {
...
}
}
Just a note:
I think that if the bean is @Stateless there is no need for
@SerializedConcurrentAccess.
And I have this error :
11:20:09,578 ERROR [STDERR] 9 mai 2007 11:20:09
com.sun.faces.lifecycle.LifecycleImpl phase
ATTENTION: phase(RESTORE_VIEW
1,[EMAIL PROTECTED])
threw exception: java.lang.IllegalStateException: No phase id bound to
current thread (make sure you do not have two SeamPhaseListener
instances installed) No phase id bound to current thread (make sure
you do not have two SeamPhaseListener instances installed)
org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153)
org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
org.jboss.seam.Component.getInstance(Component.java:1618)
org.jboss.seam.Component.getInstance(Component.java:1613)
org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
I tried to find where I'm wrong (maybe everywhere :)...
What does mean this error message ?
Thanks,
Benjamin JALON
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm