在rich:tree中如果想要在頁面中初始化tree的展開和選中狀態(tài)或者在頁面更改后返回時保持之前的狀態(tài),
可以設置tree的adviseNodeOpened 和 adviseNodeSelected屬性。
可以設置tree的adviseNodeOpened 和 adviseNodeSelected屬性。
adviseNodeOpened | false | false |
javax.el.MethodExpression
(signature must match java.lang.Boolean adviseNodeOpened(org.richfaces.component.UITree) )
|
MethodBinding pointing at a method accepting an org.richfaces.component.UITree with return of java.lang.Boolean type. If returned value is: java.lang.Boolean. TRUE, a particular treeNode is expanded; java.lang.Boolean.FALSE, a particular treeNode is collapsed; null, a particular treeNode saves the current state |
adviseNodeSelected | false | false |
javax.el.MethodExpression
(signature must match java.lang.Boolean adviseNodeSelected(org.richfaces.component.UITree) )
|
MethodBinding pointing at a method accepting an org.richfaces.component.UITree with return of java.lang.Boolean type. If returned value is: java.lang.Boolean. TRUE, a particular treeNode is selected; java.lang.Boolean.FALSE, a particular treeNode is unselected; null, a particular treeNode saves the current state |