<p>
I am trying to render a simple table using h:dataTable on the JSF page (for 1.2 version) and there is a rendering problem. There are no JSP compile issues or exceptions on tomcat start-up to debug.
<br><br>
Now i tried other complex things like linking my backing bean with list on the bean but even this simple html data is not rendered.
I appreciate your feedback for the code below.
<br><br>
<p>
JSF page Code below:
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="
http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="
http://java.sun.com/jsf/core" prefix="f" %>
<br>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<f:view>
<html>
<head>
<title>Table Data</title>
</head>
<body>
<h:form id="tableForm">
<h:dataTable id="table1">
<h:column>
<h:outputText id="id" value="ID"></h:outputText>
</h:column>
<h:column>
<h:outputText id="userName" value="userName">
</h:outputText>
</h:column>
</h:dataTable>
</h:form>
</body>
</html>
</f:view>
<br><br>
<p>
The View Source Generated the HTML as shown Below:
<br>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Table Data</title>
</head>
<body>
<form id="tableForm" name="tableForm" method="post" action="/dsLoad/dsWellInfo.jsf;jsessionid=E92EC011CB644CC2644D71BD8996BAD2" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="tableForm" value="tableForm" />
<table id="tableForm:table1">
<tbody>
</tbody>
</table>
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1:j_id2" />
</form>
</body>
</html>
[Message sent by forum member 'webdev99' (webdev99)]
http://forums.java.net/jive/thread.jspa?messageID=339217