Still trying to access the list of selected docs in sections :
the action category for my button is
CURRENT_SELECTION_SECTIONS_LIST
the "Selection is not empty" has been replaced by a custom EL
#{documentsListsManager.isWorkingListEmpty("CURRENT_SELECTION_SECTIONS") == false}
This works but Seam.GetSelectedDocuments is useless : i have to contribute a new, not very original, operation in Nuxeo IDE
@Operation(id=GetSectionSelectedDocuments.ID, category=Constants.CAT_FETCH, requires=Constants.SEAM_CONTEXT, label="GetSectionSelectedDocuments", description="")
public class GetSectionSelectedDocuments {
public static final String ID = "Seam.GetSectionSelectedDocuments";
protected @Context OperationContext ctx;
@OperationMethod
public DocumentModelList run() throws Exception {
List<DocumentModel> res =
OperationHelper.getDocumentListManager().getWorkingList(
DocumentsListsManager.CURRENT_DOCUMENT_SECTION_SELECTION);
return new DocumentModelListImpl(res);
}
}
But I meet the following error: could not access: DocumentsListsManager (?)