Problem with dataTableTag and setVar(String)

hi

do someone know why I get this exception?

java.lang.Error: Unresolved compilation problem:

The method setVar(String) in the type DataTableTag is not applicablefor the arguments (JspValueExpression)

I get it only using EL like here:

<h:dataTable value="#{testHandler.cities}" var="city" >

<h:column>

<h:outputText value="#{city}" />

</h:column>

</h:dataTable>

..where cities is an ArrayList with String objects.

I use Tomcat 6.0.13,

JSF1.2 (jsf-api.jar, jsf-impl.jar),

JSTL1.2 (jstl-1.2.jar),

commons-beanutils-1.7.0,

commons-collections-3.2.jar,

commons-digester-1.8.jar,

commons-logging-1.1.jar

thx

adam

[871 byte] By [adamJa] at [2007-11-27 4:42:33]
# 1

Hi,

I am not sur if you import the .TLD fils for HTML and CORE from your local directory or not, but I had the same exception like you do and this solved my problem:

I changed my <@taglib> directive reading from my .TLD file on my computer to http://java.sun.com/jsf/html

hope this helps,

Shadow_Hearta at 2007-7-12 9:54:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...