22 Dec 16:02
RichFaces problem on nuxeo tree]
From: Bogdan Tatar <bogdan.tatar@...>
Subject: RichFaces problem on nuxeo tree]
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-12-22 15:05:56 GMT
Subject: RichFaces problem on nuxeo tree]
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-12-22 15:05:56 GMT
Hi again,
It seems that the problem is not at richfaces level as this is working
just fine.The method that is called to populated the tree in nuxeo
returns a list of DocumentTreeNode and on each node,which is a
DocumentTreeNodeImpl, the method getChildren() is called in order to
retrieve the children documents.This is done by making a call on
DocumentManagerBean
public DocumentModelList getChildren(DocumentRef parent, String type,
String perm, Filter filter, Sorter sorter) throws
ClientException {
The problem appears on the statefull/stateless architecture,where the
modules that interact with a database of any kind are kept on a jboss
instance and represents the statefull part of the architecture, and the
web modules which represent,together with the corresponding api modules,
the stateless architecture and are kept on another jboss instances.Both
filters and sorters that are used in TreeManager service are registered
by this service which is part of a stateless modules.The classes of
these filters and sorters are searched like this
TreeManagerImpl.class.getClassLoader().loadClass(
filterClass).newInstance();
so the classes of these sorters and filters have to be on a same module
like the module where TreeManager service is,a stateless module.By doing
this we get into problems when calling the method 'getChildren()' from a
DocumentTreeNodeImpl.This method wants to use the method 'getChildren'
from DocumentManagerBean,but the classes of the filters and sorters are
not available on the statefull jboss instance where the
(Continue reading)
RSS Feed