users@glassfish.java.net

JSF - PWC6317: The attributes for ... cannot be deferred expressions

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Sep 2007 12:09:06 PDT

org.apache.jasper.JasperException: /welcome.jsp(19,53) PWC6317: The attributes for a standard action or an uninterpreted tag cannot be deferred expressions

The above error occurs against this statement <h:outputText value="#{user.name}" /> (the first instance of #{...} ) at line, space (19,53) when the jsp file is formatted with:

<?xml version="1.0" ?>
<jsp:root version="2.0"
      xmlns:jsp="http://java.sun.com/JSP/Page"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="htpp://java.sun.com/jsf/html">
    <jsp:directive.page contentType="text/html" />
    <jsp:output omit-xml-declaration="no"
         doctype-root-element="html"
         doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
         doctype-system="http://www.w3.org/TR?xhtml1/DTD/xhtml1-transitional.dtd" />
<f:view>
<html xmlns="http://www.w3.org/1999/xhtml">
...

If I use the following format, all is well:

<html>
     <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
     <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
...

I am sure I am missing something trivial/fundamental. I am going through the book CoreJSF 2nd Ed where it is suggested to use the first(xml) format. I would like to but it does not work, I would like to know why. Thanks.
[Message sent by forum member 'leethao' (leethao)]

http://forums.java.net/jive/thread.jspa?messageID=234098