webtier@glassfish.java.net

Re: [webtier] TagException thrown for head, body, outputStylesheet

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Tue, 23 Feb 2010 15:53:00 +0100

Third, if you are using JSF2, you don't need to include facelets anymore
because it is built in ;)

On Mon, Feb 22, 2010 at 5:20 PM, Ed Burns <Ed.Burns_at_sun.com> wrote:

> On 2/22/10 6:53 AM, webtier_at_javadesktop.org wrote:
>
>> Hi there,
>>
>> I have a simple web project I have created for myself and that works fine.
>>
>
> I started looking at the<h:outputStylesheet> tag but when I run the
>
> application I receive the following:
>
>>
>> com.sun.facelets.tag.TagException: /main.xhtml @8,57<h:outputStylesheet>
>>
>
> Same goes for<h:head>,<h:body> which have
>>
>
> been available since jsf 1.x.
>>
>
> Thanks for taking the time to write up a mail. I appreciate it.
>
> First, those tags *are* new in JSF2. Second, you have to make
> sure to declare the h: namespace on every page that
> uses it, regardless of if the page is a template, or template
> client. Like this:
>
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://java.sun.com/jsf/html">
>
> Ed
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>


-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"