How to uncheck document list

Hello,

At the end of a automation chain for a multi-publish action from a button, selected documents are still checked in the content view. How to uncheck them ? After many search, I found nothing about this. UI clear worklist doesn't work Thanks for help.

0 votes

4 answers

2107 views

ANSWER



Hi,

You might want to read this answer Problem refreshing UI after document deletion or this blog entry: [[Q&A Friday] How to Clear UI Selected Documents in Studio]2

0 votes



I found the cause : using Nuxeo IDE to create operation, I had this annotation parameter on my run method : (collector=DocumentModelCollector.class)

giving the iterable exception above…

As it is the first time I use Nuxeo IDE, I didn't pay attention to this. After removing this parameter, it works fine.

Thanks for replies and sorry for my noob blindness.

-1 votes



Please stop posting questions in the answers section.
05/16/2012


Hello again,

In the init phase I have found this exception :

ERROR [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Failed to register extension to: service:org.nuxeo.ecm.core.operation.OperationServiceComponent, xpoint: operations in component: service:org.nuxeo.inpt.operations.ClearSelectedDocuments

  • Failed to register extension to: service:org.nuxeo.ecm.core.operation.OperationServiceComponent, xpoint: operations in component: service:org.nuxeo.inpt.operations.ClearSelectedDocuments (java.lang.IllegalArgumentException: An iterable method must have an argument)

Eclipse doesn't complain about antything, I can't figure out where is iterable method and where to add arguments…

Is something wrong in the extension generated by Nuxeo IDE ? In the blog screenshot, signature is different, there is no “object” elements, while when exporting my operation, I have this entry in Nuxeo Studio registry :

{ “operations” : [ {

"id" : "Seam.ClearSelectedDocuments",
"label" : "ClearSelectedDocuments",
"category" : "User Interface",
"description" : "Clear selected documents list in UI",
"url" : "Seam.ClearSelectedDocuments",
"requires" : "Seam",
"signature" : [ "void", "void", "object", "object" ],
"params" : [ ]

} ] }

-1 votes



Are you sure the signature of your method is ok? It should be public void run()
05/16/2012


Hi,

Thanks for reply. Nevertheless, following blog's instructions and completing with jar deployement into nxserver/plugins directory and nuxeo server restarting leads to following exception when triggering my chain :

ERROR [org.nuxeo.ecm.automation.jsf.OperationActionBean] org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: Seam.ClearSelectedDocuments org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: Seam.ClearSelectedDocuments

at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.getOperation(OperationServiceImpl.java:221)
at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.buildChain(CompiledChainImpl.java:141)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.compileChain(OperationServiceImpl.java:259)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.compileChain(OperationServiceImpl.java:252)
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:83)
at org.nuxeo.ecm.automation.jsf.OperationActionBean.runOperation(OperationActionBean.java:87)
at org.nuxeo.ecm.automation.jsf.OperationActionBean.doOperation(OperationActionBean.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

Is there something else to do ?

-1 votes



This error:

ERROR [org.nuxeo.ecm.automation.jsf.OperationActionBean] org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: Seam.ClearSelectedDocuments

means that your operation has not been correctly deploy on Nuxeo server. You need to make sure that the jar you deployed contains the operation, and that it's id is indeed Seam.ClearSelectedDocuments

05/15/2012