Jason,
Thanks for the reply. I'm just using the decorate.xhtml and
simpleTemplate.xhtml from the jsftemplating examples, which should work.
Below is the stacktrace from tomcat.
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: ComponentType 'html' not defined!
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
root cause
java.lang.IllegalArgumentException: ComponentType 'html' not defined!
com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(T
emplateReader.java:341)
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(B
aseProcessingContext.java:56)
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.
java:300)
com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(Te
mplateReader.java:171)
com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.jav
a:128)
com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLay
outDefinition(TemplateLayoutDefinitionManager.java:168)
com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(Lay
outDefinitionManager.java:147)
com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutVi
ewHandler.java:474)
com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.
java:231)
com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:777)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:216)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:274)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:127)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
_____
From: Jason Lee [mailto:jason_at_steeplesoft.com]
Sent: Monday, September 17, 2007 1:02 PM
To: dev_at_jsftemplating.dev.java.net
Subject: Re: JSFTemplating: Facelets Snytax giving
java.lang.IllegalArgumentException: ComponentType 'html' not defined! error
On 9/17/07, Barrie Selack <bselack_at_riteaid.com> wrote:
I'm closer to getting jsftemplating integrated into my project. I now see
the seam components with info.jsf (although I'm not using them yet). I'm
tying to use the facelets syntax *the jsf syntax works) I downloaded the
latest nightly jars, as I can't get to CVS from work.
When I bring the samples into my project and go to decorate.jsf, I get:
java.lang.IllegalArgumentException: ComponentType 'html' not defined!
If I remove the template for simpleTemplate.xhtml, the page renders, but
includes data that should not render.
What does your template look like? If you don't have the Facelets namespace
declaration, then the FaceletsLayoutDefinitionManager will not claim the
file, and the TemplateLayoutDefinitionManager like will. If that's the
case, it doesn't know about <html> so you have to do "<html> (note the
leading quote).
--
Jason Lee, SCJP
Software Architect -- Objectstream, Inc.
JSF RI Dev Team
http://blogs.steeplesoft.com
Disclaimer: This e-mail message is intended only for the personal use of
the recipient(s) named above. If you are not an intended recipient, you
may not review, copy or distribute this message. If you have received this
communication in error, please notify us immediately by e-mail and delete
the original message.
This e-mail expresses views only of the sender, which are not to be
attributed to Rite Aid Corporation and may not be copied or distributed
without this statement.