webtier@glassfish.java.net

Strange behavior/Possible bug

From: <webtier_at_javadesktop.org>
Date: Tue, 30 Mar 2010 08:28:22 PDT

I'm writing a simple JSF 2.0 app using Glassfish V3. I will be outputting types other than just (x)html, so I wanted to change javax.faces.DEFAULT_SUFFIX to ".jspx" instead of the default of ".xhtml" just because the contents are not always xhtml. When I do this, and change the names of all my jsf files to .jspx, I get two strange errors on my pages that actually [b]are[/b] xhtml. The first, is that the SAX parser attempts to download the DTD specified in the DOCTYPE, this results in a 503 error, and the parser throws an exception. If I remove the DOCTYPE, I get the following exception:

org.xml.sax.SAXException: PWC6143: No tag "head" defined in tag library associated with uri "http://java.sun.com/jsf/html"

Is this a bug or am I doing something wrong? Is there another way I can get my non xhtml jsf files to be processed without having their extension be "xhtml"?

Thank you!
-ds
[Message sent by forum member 'digitalseraphim']

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