It's failing on the following. If I remove the expression, then it's OK.
<h:commandLink action="#{appointmentsHandler.listAppointments}"
value="List appointments" immediate="true"/>
Regarding the comments, I'm using JSP XML documents. <%-- --%> isn't valid
XML, so, I can't use that. Also, even if it's using an XML comment, it
should just be sending it as template text to the client. That's not what's
happening. JSF is still turning it into actual components. What I've been
wondering is if there is a JSP XML document way of commenting things so that
it doesn't go back to the client as template text?
Jon
----- Original Message -----
From: "Jason Lee" <lee_at_iecokc.com>
To: <users_at_javaserverfaces.dev.java.net>
Sent: Monday, March 05, 2007 4:43 PM
Subject: RE: Question regarding includes and subviews
>> -----Original Message-----
>> I'm guessing I'm probably doing something stupid here. I'm
>> including the following file using the following include
>> directive. NetBeans is giving me an error message of "#{...}
>> not allowed in template text body." It does this in the
>> editor, but, it runs fine anyway. What I'm wondering is, am I
>> doing something wrong, or, is this just an erroneous error
>> message? I'm using JSP XML documents.
>
> JSP requires that you wrap text in <h:outputText />. I'm guessing you
> have something like
>
> <h:outputLink
> value="http://foo">#{myBean.someText}</h:outputLink>
>
> Which should be
>
> <h:outputLink value="http://foo"><h:outputText
> value="#{myBean.someText}"/></h:outputLink>
>
>> A second problem is that I have the h:dataTable commented
>> out, yet, JSF is still rendering it even though it's
>> commented. I'm using JSF 1.1 since that is all NetBeans
>> supports at the moment (at least for use with the version of
>> Tomcat that comes with it).
>
> You are using HTML comments (<!-- -->). If you want the JSP compiler to
> ignore that markup, use JSP comments (<%-- --%>).
>
> -----
> Jason Lee, SCJP
> JSF RI Dev Team
> Senior Software Engineer
> http://www.iec-okc.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>