Hi,
I would say that EL 2.2 will only work with Facelets in Tomcat 6. I
don't know details about Jasper (the JSP compiler), but there might be
(and obviously are) additional problems even if you exchange the EL.
With JSF 2, you should anyway use Facelets, unless you have a very good
reason not to do so. JSP is deprecated for JSF 2 and most of the new
features are not available.
regards
Michael
Am 23.05.2010 16:23, schrieb deligeli:
this is the question. what in the above list is a peding el jars?
as well, i had to put back jasper-el.jar - otherwise, I got the exception!
Werner Punz-2 wrote:
I am not an expert on this, but it sounds like an old el lib is still
lingering around, have you cleaned out all lib dirs tomcat has (lib and
commons/lib) of pending el jars?
Werner
Am 23.05.10 14:28, schrieb deligeli:
Hi!
I am trying to use el-api-2.2.jar with myfaces 2.0.
as i read here:http://wiki.apache.org/myfaces/HowToEnableEl22
I even added the parameter:
<context-param>
<param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
However, I get this exception:
org.apache.jasper.JasperException: /root.jsp(13,2) The function library
must
be used with a prefix when a default namespace is not specified
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
at
org.apache.jasper.compiler.Validator$ValidateVisitor$1FVVisitor.visit(Validator.java:1478)
When I try to execute:
<h:outputText value="#{libraryBean.library('yes')}"></h:outputText>
and in my bean I have:
public String getLibrary(String type){
return type;
}
public String getLibrary(){
return "hllo";
}
when I remove the variable ('yes') - it works and returns hllo.
I tried to remove jasper-el.jar from tomcat, but i got an exception.
My jars at tomcat:
annotation-api.jar
catalina.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
el-api2.2.jar
el-impl2.2.jar
jasper.jar
jasper-jdt.jar
jsp-api.jar
servlet-api.jar
tomcat-coyote.jar
tomcat-dbcp.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
and at the application i have:
myfaces-2.0
what am I missing?