-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
None
sample code is here, its giving /welcomeJSF.jsp(26,12) According to TLD or attribute directive in tag file, attribute title does not accept any expressions
welcomeJSF.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="javax.el.ValueExpression" %>
<%@ page import="javax.el.ExpressionFactory" %>
<%@ page import ="com.sun.el.ExpressionFactoryImpl"%>
<%@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">
<%--
This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
ExpressionFactory el = new ExpressionFactoryImpl();
ValueExpression testExpression = el.createValueExpression( " Test" , new String().getClass());
%>
<h:form>
<h:commandLink title="<%=testExpression%>" id="next" action="#">
<h:outputText value="Next Page ยป" />
</h:commandLink>
<h1><h:outputText value="JavaServer Faces" /></h1>
</h:form>
</body>
</html>
</f:view>