Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7073

ValueExpression is not working with JBOSS 5.1.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • None
    • JSF

    Description

      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>

      Attachments

        Activity

          People

            ssilvert@redhat.com Stan Silvert
            anil3379 anil kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: