No, that's what I'm talking about. Let me try it....and thanks!
On 9/12/07, Jason Lee <jason_at_steeplesoft.com> wrote:
>
> On 9/12/07, Jason Suplizio <suplizio_at_gmail.com> wrote:
> >
> > and its a nice entry, but I still can figure out how to use woodstock
> > components with the a Facelets xhtml page that references a facelets
> > template (also xhtml).
> >
>
> I'm not sure what you mean.
>
> layout.xhtml
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="
> http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html" xmlns:f="
> http://java.sun.com/jsf/core"
> xmlns:w="http://www.sun.com/webui/webuijsf">
> <head>
> <title>Title</title>
> <link rel="stylesheet" type="text/css" href="${
> facesContext.externalContext.request.contextPath}/style.css" />
> </head>
>
> <body>
> <ui:insert name="content">
> You shouldn't see this
> </ui:insert>
> </body>
> </html>
>
> index.xhtml:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="
> http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html" xmlns:f="
> http://java.sun.com/jsf/core"
> xmlns:w="http://www.sun.com/webui/webuijsf">
> <ui:composition template="layout.xhtml">
> <ui:define name="content">
> <webuijsf:staticText text="woo!" />
> </ui:define>
> </ui:composition>
> </html>
>
> Something like that, or am I way off? :)
>
> --
> Jason Lee, SCJP
> Software Architect -- Objectstream, Inc.
> JSF RI Dev Team
> http://blogs.steeplesoft.com
--
"Be the change you wish to see in the world." - Mahatma Ganhdi
"Never think that war, no matter how necessary, nor how justified, is not a
crime. "
Earnest Hemingway