Bogdan Tatar | 22 Dec 16:02

RichFaces problem on nuxeo tree]

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)

Florent Guillaume | 24 Dec 14:13

Re: RichFaces problem on nuxeo tree]

You're right, the DefaultDocumentTreeSorter class should be available  
on the core (stateful) machine when it's used to display trees.
Can you open a JIRA ticket for this please ?

Florent

On 22 Dec 2008, at 16:05, Bogdan Tatar wrote:

> 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
(Continue reading)


Gmane