I tried many times but always getting only Table Header. Above file is called from below file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Replace path to template, title, header and body
with actual data.
<ui:define name="title">WILEY(Knowledge For Generations)</ui:define>
<ui:include src="../../WEB-INF/template/header.xhtml" />
That is a very odd looking dataTable. You don't seem to have defined a Model to back it up or a row variable to use as a cursor.
If you attempt to display a table with no rows, I'd expect only a header. Or - since the rich dataTable supports it, the "no data" row - if you've defined it.
Incidentally, use the "Code" button when you want to include formatted text such as Java sample code or XML. It makes it more readable.
An IDE is no substitute for an Intelligent Developer.
posted 4 years ago
Hi Tim, I was using data model earlier, but as not getting rows in page I removed them to check what is actual issue. Now I am only trying to put simple datatable, where I coded as below. Till application Id code is running fine but <h:outputText where I put hardcoded value is not coming up. In Page source I can see <tbody> is coming blank :(