showing a table after a item is selected

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 13
Joined: 04 Sep 2010, 05:55

14 Sep 2010, 20:07

Hi, I am working on a item selection such that when the item is selected it will display a table with attribute which can be edited.

Code: Select all

<p:tree update="attributeList" value="#{treeManagedBean.root}" var="node" selectionMode="single" selection="#{treeManagedBean.selectedNode}">
                                            <h:outputText value="#{node}" />

This is the table that i wanted it to display after the item is selected, with all the attributes listed in the table and the extra outputText can be used to make amendment in the table.

Code: Select all

<p:dataTable id="attributeList" var="attributes" value="#{treeManagedBean.attributesList}">
                                            <f:facet name="header">
                                                <h:outputText value="#{attributes}" />
                                                <h:outputText value="#{treeManagedBean.input}" />
                                            <h:outputText />
I try to make it display but it didnt work. I wonder what went wrong. Cany anyone advise? thanks! :)

Posts: 13
Joined: 04 Sep 2010, 05:55

15 Sep 2010, 17:22

solved it.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], Google [Bot], and 18 guests