| Author |
Unable to display header in outer JSF datatable of a nested datatable using facet tag
|
Sathya Narayanan
Greenhorn
Joined: May 10, 2007
Posts: 3
|
|
Hello, Am developing a search page which returns a result having a set of rows. I use datatable to iterate the results. One column in each row of the result contains another list which should expand on clicking on the particular column and diaplay the data inside it using another inner datatable. I use Javascript to expand and collapse the inner datatable. The problem is that when I try using the <f:facet>to display the header in the outer datatable the header is not displayed. The results is displayed correctly but the header alone are not displayed in the outer datatabe. <h:dataTable id="books" value="#{DataTab.items}" var="list"> <h:column> <f:facet name="header"> <h utputText value="Name"></h utputText> </f:facet> <h utputText value="list.name"></h utputText> </h:column> <h:column> <h:dataTable id="books" value="#{DataTab.items1}" var="list1"> <h:column> <f:facet name="header"> <h utputText value="occupation"></h utputText> </f:facet> <h utputText value="#{list1.occupation}"></h utputText> </h:column> <h:column> <f:facet name="header"> <h utputText value="location"></h utputText> </f:facet> <h utputText value="#{list1.location}"></h utputText> </h:column> </h:datatable> </h:column> </h:datatable> In the above example the nested datatable is used. Here the <f:facet> with outputtext value="Name" whcih belongs to the outer datatable header is not displayed.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Welcome to JavaRanch! We're pleased to have you here with us in the JSF forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. You can change it here
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Sathya Narayanan
Greenhorn
Joined: May 10, 2007
Posts: 3
|
|
I have changed the display name Thanks for the reply
|
 |
 |
|
|
subject: Unable to display header in outer JSF datatable of a nested datatable using facet tag
|
|
|