我试图将树木添加到1个表格中:
Tab tmp = new Tab();
TreeNode root = new DefaultTreeNode("root",null);
TreeNode test = new DefaultTreeNode("test",root);
tmp.getChildren().add((UIComponent)root);
谁能帮助我?
我试图将树木添加到1个表格中:
Tab tmp = new Tab();
TreeNode root = new DefaultTreeNode("root",null);
TreeNode test = new DefaultTreeNode("test",root);
tmp.getChildren().add((UIComponent)root);
谁能帮助我?
我建议你使用。 协议小组——模型
协定可以显示有活力的、有模型支持的表格。 由于制成表格,也很容易实施添加/移除表格。
举一个例子...... 页: 1 (简言之行在示例中执行)
扩大上述实例
在表格中添加
<p:tree value="#{player.root}" var="node" id="tree">
<p:treeNode id="treeNode">
<h:outputText value="#{node}" id="lblNode"/>
</p:treeNode>
</p:tree>
并加入参与者类别......
private TreeNode root;
public initTree() {
root = new DefaultTreeNode("Root", null);
TreeNode node0 = new DefaultTreeNode("Node 0", root);
TreeNode node1 = new DefaultTreeNode("Node 1", root);
TreeNode node2 = new DefaultTreeNode("Node 2", root);
TreeNode node00 = new DefaultTreeNode("Node 0.0", node0);
TreeNode node01 = new DefaultTreeNode("Node 0.1", node0);
TreeNode node10 = new DefaultTreeNode("Node 1.0", node1);
TreeNode node11 = new DefaultTreeNode("Node 1.1", node1);
TreeNode node000 = new DefaultTreeNode("Node 0.0.0", node00);
TreeNode node001 = new DefaultTreeNode("Node 0.0.1", node00);
TreeNode node010 = new DefaultTreeNode("Node 0.1.0", node01);
TreeNode node100 = new DefaultTreeNode("Node 1.0.0", node10);
}
public TreeNode getRoot() {
return root;
}
这里是参与者的来源。 java
http://www.ohchr.org。
after looking at Issue with p:tree inside loops (ui:repeat, p:dataTable, ...)
以及
问题3640:在国家储蓄期间,Null PointerException:tree within loops(ui:repeat, p:tabView, ......)
似乎在这种特征方面存在着公开的争 that。
We have a search form where the filter is bound to a property on a managed bean (session scope). It s not component binding, its property binding like <h:inputText value="#{searchBean.filter}"/>....
I m having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 ...
Can anyone teach me how to use mojarra to encode my JSF files. I downloaded mojarra and expected some kind of jar but what i had downloaded was a folder of files i don t know what to do with
在共同基金中,如果用户要求终止,就需要采取一些行动。 我需要某种拦截器,但我不知道如何这样做。 我需要帮助。 增 编
Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading ...
I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...
The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...
How do I submit only part of a page in ADF Faces?