在jsf1.2中从bean动态创建rich:treeNodesAdaptor

时间:2014-04-18 18:40:29

标签: jsf java-ee richfaces jsf-1.2

            <h:panelGrid columns="2" width="100%" columnClasses="col1,col2">
                <rich:tree style="font-size:12px; width: 300px;" id="treeExample"
                    nodeSelectListener="#{treeComponentTest.actionEventOnRecursiveAdapter}"
                    ajaxSubmitSelection="true" ajaxSingle="true" switchType="ajax"
                    var="item" reRender="treeExample">
                    <rich:treeNodesAdaptor nodes="#{treeComponentTest.nodes}">
                        <rich:treeNode
                            changeExpandListener="#{treeComponentTest.actionEventOnRecursiveAdapter}" />
                    </rich:treeNodesAdaptor>
                </rich:tree>
            </h:panelGrid>

我担心的是我想每次从db生成treeNodeAdapter作为另一个适配器的节点的子节点,请帮助如何编写bean

0 个答案:

没有答案