Has any one successfully implemented tree component with multiple ITreeContentProvider ?

I have UI screen with multiple rows of data - each row should have a tree component - which on click shall lazily load it's children

***** page *********

<property name="treeState" persist="session" initial-value="ognl:new java.util.HashSet()"/>

<component id="tree" type="tacos:Tree">
    <binding name="contentProvider" value="new com.pennmutual.csc.pages.TransactionTreeContentProvider(currentTrans[tranIndex].transType,currentTrans[tranIndex].details)"/>
    <binding name="value" value="item"/>
    <binding name="state" value="treeState"/>   
    <binding name="nodeLinkAjax" value="ognl:false" />      
</component>

***** page *********

I am creating TreeContentProvider for each row - and data is read from collection which is in session.

When I click on plus sign - nothing happens - plus sign does not expand . Additionally if I just do,

***** page *********

<property name="treeState" persist="session" initial-value="ognl:new java.util.HashSet()"/>

<component id="tree" type="tacos:Tree">
    <binding name="contentProvider" value="contentProvider"/>
    <binding name="value" value="item"/>
    <binding name="state" value="treeState"/>   
    <binding name="nodeLinkAjax" value="ognl:false" />      
</component>

//there is getContentProvider
// there is member     
// private ITreeContentProvider CONTENT_PROVIDER = new TransactionTreeContentProvider("Parent","someparam");

***** page *********

in this case plus sign works ,

so I have 2 questions -

1) Has any one implemented tree using multiple content providers ?
2) How to manage the state of tree in that case ?

if any one can suggest any clues or has sample source code to share - that shall be of g8 help.

Thanks
Mittal

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to