Hehe. Yeah, I could probably wrap it in a CDATA tag or something. I think
I'll just remove that code. Basically, I just had it there while I was doing
some experimentation. Mainly, I just raised this question because I wasn't
sure if I was doing something correctly with regards to how to do JSP
fragments and includes. My guess is that the problem has probably been long
since fixed in JSF 1.2. So, once I upgrade to that I probably won't even run
into the problem anymore.
On a slightly related note, I wondering how many people use JSP XML
documents instead of just normal JSP? I'm guessing the vast majority just
use normal JSP. I'm using it mainly because I thought the syntax would be a
little nicer and would be consistent with XML. It's less flexible in terms
of doing includes though. i.e. every document has to be well formed. You
can't have a header with an open <html> tag in it and a footer with the
close tag. You always have to have open and close tags in the same file.
Jon
----- Original Message -----
From: "Jason Lee" <jason_at_steeplesoft.com>
To: <users_at_javaserverfaces.dev.java.net>
Sent: Monday, March 05, 2007 9:05 PM
Subject: Re: Question regarding includes and subviews
> On 3/5/07, Jon Miller <jemiller_at_uchicago.edu> wrote:
>>
>> 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?
>>
>
> I thought of something after I left the office. You might try wrapping
> the
> table in JSP comments to prevent processing, then wrapping that in
> HTML/XML
> comments to make the parser happy. It might not like the "--" in the JSP
> comments, so that may not work. I don't have anything setup to test that,
> so I'm shooting from the hip. :)
>
> jason lee
>