rich: tree - programmatically install the selected node

I have a tree (a parent can have any number of children) and an inputText to search for nodes by name. Suppose the following tree:

A
--A1
----AA1
--A2

Where A has two children A1 and A2, A1 has one child AA1. When I enter the text A1 into the input text, I want to programmatically select the nodes (A1, AA1) and, if necessary, expand the nodes.

(I have list<T>to build my tree)

+3
source share
2 answers

I'm not sure what exactly you are asking for, but I assume that you want to set the value of node A1 and all its children when you type "A1".

( A? 1, ). -, node. -, . , , .

, , .

, .

0

TreeNode richfaces , . , , -

0

Source: https://habr.com/ru/post/1771431/


All Articles