Skip to main content

can't make render body data!

2 replies [Last post]
Joined: 2010-07-28

Hi guys,

I am having a very strange issue with a web app we are building in JSF 2.0. We have built a number of screens successfully with little issue with the JSF 2.0 framework.

HOWEVER, when attempting to implement an control we have only been able to get the column header and footer values (using facets) to render and all data even if hardcoded within the main body of the table will not show.

When viewing the rendered html source from the browser, it is discovered that where the dataTable body data should be there is only the following:

set of tags.

We have tried adding data by using a bean, through outputText tags and just plain old hardcoding.

I figure there must be something wrong with my environment but not sure. I have searched a lot on the forums with little success of someone having a similar issue.

Perhaps I am missing something glaringly obvious to the rest of you?

Here is a simple xhtml page I have put together using a dataTable that does NOT work for me in my environment:

<?xml version="1.0" encoding="UTF-8"?>

Our website


Does anyone see anything wrong with this? Any help is appreciated please as it is now holding up getting back to the business of building the app.

Thanks in advance!


Message was edited by: cgruther51

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-07-28


I think the dataTable needs that you provide an "List" to be iterated. As you didn't set the "value" property of dataTable, no rows were rendered and because of this, you don't have a "tbody".

Try to pass a List of objects to the dataTable and you will see one line be rendered for each item of yout list.

I hope this can help you.


Joined: 2010-07-28

Hi, thanks for your response. I will do some research tonight on it.

In the meantime, if anyone has a very simple reference example I could look at for passing a list to a dataTable I would greatly appreciate it!

thx in advance.