i use netbean 6.9.1 with apache tomcat 6.in my jsf page, i want call method with parameter, for current, i use tomcat 6 with EL default.
i downloaded EL 2.2 from http://download.java.net/maven/glassfish/javax/el/el-api/2.2.0-SNAPSHOT/el-api-2.2.0-SNAPSHOT.jar
i renamed these files to el-api-2.2.0.jar and el-impl-2.2.0.jar, then i copy to tomcat lib (C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.26\lib)
In the web.xml, i added this
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
KategoriManager.java (for testing)
public String editSetup(Integer id) {
return "kategori_edit";
}
and Edit.jsp
---cut---
<h:commandLink value="Edit" action="#{kategoriManager.editSetup(1)}"/>
---cut---
but in IDE netbean, i still got tooltip error like "the function must be used with prefix"
i run this web, but i got error
HTTP Status 500 -
type Status report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
Apache Tomcat/6.0.26
how to enable EL 2.2 on Tomcat 6 ? please help..
thanks