JSF + tree component (primefaces or other) + ArrayList

0

Good morning.

I'm developing JSF client side of an App, and I want to include a tree structure to display the values of an ArraList.

The ArrayList is populated in the first phase with the contents of a folder, that is, the descendants (Names), which can be subfolders or files ... If the descendants are subfolders, fill in the ArrayList with the descendants of the subfolders and repeat this process until the entire folder hint is gone.

Is there a way to create this hierarchy in JSF through the Tree component (I have never used this component) that will get the values of an ArrayList? The ArrayList is populated dynamically and whenever a new node is opened in the tree ...

    
asked by anonymous 01.03.2018 / 12:03

0 answers