J
jsguru72
I had been working on a JSF web site using NetBeans. Generally
everything was fine, but I never trust that the IDE is not doing
things it does not tell me about. Just to make sure I had a firm
grasp on everything, I decided to just create a free-form web project
and import all the JARs myself.
As would probably be expected, I am missing something. The web page I
list below is exactly the same as what I had in the NetBeans web
project, but in my free-form project NetBeans gives the error listed
below at the <h:dataTable> line.
Absolutely nothing has changed on this page so I have to think I am
missing a jar file in my classpath or something. I just cannot figure
out what it might be.
Error Message
---------------------
According to the TLD, deferred-value is specified for the attribute
var of the tag handler com.sun.faces.taglib.html_basic.DataTableTag,
but the argument for the setter method is not a
javax.el.ValueExpression
Code In Question
-------------------------
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<body>
<h:form>
<h:dataTable value="#{recordBean.recordList}"
var="thisRecord">
</h:dataTable>
</h:form>
</body>
</html>
</f:view>
Current Classpath JARs
-----------------------------------
jstl.jar
standard.jar
jsp-api.jar
servlet-api.jar
jsf-api.jar
jsf-impl.jar
commons-beanutils.jar
commons-collections-3.2.1.jar
commons-digester-1.8.jar
commons-logging-1.1.1.jar
Any help would be appreciated.
Thanks,
John
everything was fine, but I never trust that the IDE is not doing
things it does not tell me about. Just to make sure I had a firm
grasp on everything, I decided to just create a free-form web project
and import all the JARs myself.
As would probably be expected, I am missing something. The web page I
list below is exactly the same as what I had in the NetBeans web
project, but in my free-form project NetBeans gives the error listed
below at the <h:dataTable> line.
Absolutely nothing has changed on this page so I have to think I am
missing a jar file in my classpath or something. I just cannot figure
out what it might be.
Error Message
---------------------
According to the TLD, deferred-value is specified for the attribute
var of the tag handler com.sun.faces.taglib.html_basic.DataTableTag,
but the argument for the setter method is not a
javax.el.ValueExpression
Code In Question
-------------------------
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<body>
<h:form>
<h:dataTable value="#{recordBean.recordList}"
var="thisRecord">
</h:dataTable>
</h:form>
</body>
</html>
</f:view>
Current Classpath JARs
-----------------------------------
jstl.jar
standard.jar
jsp-api.jar
servlet-api.jar
jsf-api.jar
jsf-impl.jar
commons-beanutils.jar
commons-collections-3.2.1.jar
commons-digester-1.8.jar
commons-logging-1.1.1.jar
Any help would be appreciated.
Thanks,
John