我在我的应用程序中使用JSF 1.2和RichFaces。当我尝试访问富面板中的标题时,我得到一个例外,我无法弄明白。
<c:forEach var="comp" items="${components.component.components}">
<rich:panel header="${comp.key}"></rich:panel>
org.apache.jasper.JasperException: /gencom.jsp(19,5) According to TLD or attribute directive in tag file, attribute header does not accept any expressions
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 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
像这样添加了taglib
<%@ taglib uri="java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib prefix="c" uri="java.sun.com/jsp/jstl/core"%>;
<%@ taglib uri="richfaces.org/a4j"; prefix="a4j"%>
<%@ taglib uri="richfaces.org/rich"; prefix="rich"%>