You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paolo Scopa <pa...@yahoo.com> on 2008/04/16 23:39:55 UTC
facelets tomahawk tag issue
all, i have a problem with this simple myTest.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<t:document 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:t="http://myfaces.apache.org/tomahawk">
<h:outputText value="Test H"/>
<t:outputText value="Test T"/>
</t:document>
It happens that it produces only one line with Test H
Looking at the page source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<t:document xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://myfaces.apache.org/tomahawk">Test H
<t:outputText value="Test T"></t:outputText>
</t:document>
I am sure there are all the lib etc and that the tomahawk.taglib.xml is in
the WEB-INF folder, it contains
<tag>
<tag-name>outputText</tag-name>
<component>
<component-type>org.apache.myfaces.HtmlOutputText</component-type>
<renderer-type>org.apache.myfaces.Text</renderer-type>
</component>
</tag>
that web.xml contains
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
</context-param>
What else can i check?
(i mean, no other t: tag works...)
Paolo
--
View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: facelets tomahawk tag issue
Posted by Gerald Müllan <gm...@apache.org>.
Hi,
if you want to use tomahwak in combination with facelets i would
recommend to use
http://code.google.com/p/tomahawk-facelets/
Just copy the jar to your lib dir and you get tomahawk facelets support.
But anyway, i am wondering that facelets doesn`t complain about the
missing tag definition.
cheers,
Gerald
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: facelets tomahawk tag issue
Posted by Andrew Robinson <an...@gmail.com>.
Not that I know of, maybe facesGoodies on google? Anyone else know?
-A
On Wed, Apr 16, 2008 at 4:12 PM, Paolo Scopa <pa...@yahoo.com> wrote:
>
> ok, thanks,
> checked, it is there in the war file and it contains definition of the
> outputText tag.
> Not sure what else i can check.
>
> Is there a simple example application somewhere that include facelets and
> tomahawk i can check against?
>
>
>
>
>
> Andrew Robinson-5 wrote:
> >
> > Most third party components have facelets support built in, so just
> > check that all your taglibs that you set in your web.xml are in the
> > WAR:
> >
> > <context-param>
> > <param-name>facelets.LIBRARIES</param-name>
> > <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> > </context-param>
> >
> > Then look for:
> >
> > yourApplication.war!/WEB-INF/tomahawk.taglib.xml
> >
> > It needs to be in the same location as the param-value and in the WAR,
> > not your jar files.
> >
> >
> > On Wed, Apr 16, 2008 at 3:54 PM, Paolo Scopa <pa...@yahoo.com> wrote:
> >>
> >> more stupid answer :)
> >> which taglib.xml?
> >> I only put the tomahawk.taglib.xml in the web-inf
> >> Is there another taglib that i need?
> >>
> >>
> >>
> >>
> >>
> >> Andrew Robinson-5 wrote:
> >> >
> >> > Stupid question, but have you checked that the taglib.xml is in the
> >> > correct location in your WAR file?
> >> >
> >> > On Wed, Apr 16, 2008 at 3:39 PM, Paolo Scopa <pa...@yahoo.com>
> >> wrote:
> >> >>
> >> >>
> >> >> all, i have a problem with this simple myTest.xhtml
> >> >>
> >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >> >>
> >> >> <t:document 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:t="http://myfaces.apache.org/tomahawk">
> >> >>
> >> >> <h:outputText value="Test H"/>
> >> >> <t:outputText value="Test T"/>
> >> >>
> >> >> </t:document>
> >> >>
> >> >> It happens that it produces only one line with Test H
> >> >>
> >> >> Looking at the page source:
> >> >>
> >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
> >> >> <t:document xmlns="http://www.w3.org/1999/xhtml"
> >> >> xmlns:t="http://myfaces.apache.org/tomahawk">Test H
> >> >> <t:outputText value="Test T"></t:outputText>
> >> >>
> >> >> </t:document>
> >> >>
> >> >> I am sure there are all the lib etc and that the tomahawk.taglib.xml
> >> is
> >> >> in
> >> >> the WEB-INF folder, it contains
> >> >> <tag>
> >> >> <tag-name>outputText</tag-name>
> >> >> <component>
> >> >>
> >> >> <component-type>org.apache.myfaces.HtmlOutputText</component-type>
> >> >>
> >> >> <renderer-type>org.apache.myfaces.Text</renderer-type>
> >> >> </component>
> >> >> </tag>
> >> >>
> >> >> that web.xml contains
> >> >> <context-param>
> >> >> <param-name>facelets.LIBRARIES</param-name>
> >> >>
> >> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> >> >> </context-param>
> >> >>
> >> >> What else can i check?
> >> >> (i mean, no other t: tag works...)
> >> >>
> >> >> Paolo
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734449.html
> >>
> >>
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734721.html
>
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
Re: facelets tomahawk tag issue
Posted by Paolo Scopa <pa...@yahoo.com>.
ok, thanks,
checked, it is there in the war file and it contains definition of the
outputText tag.
Not sure what else i can check.
Is there a simple example application somewhere that include facelets and
tomahawk i can check against?
Andrew Robinson-5 wrote:
>
> Most third party components have facelets support built in, so just
> check that all your taglibs that you set in your web.xml are in the
> WAR:
>
> <context-param>
> <param-name>facelets.LIBRARIES</param-name>
> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> </context-param>
>
> Then look for:
>
> yourApplication.war!/WEB-INF/tomahawk.taglib.xml
>
> It needs to be in the same location as the param-value and in the WAR,
> not your jar files.
>
>
> On Wed, Apr 16, 2008 at 3:54 PM, Paolo Scopa <pa...@yahoo.com> wrote:
>>
>> more stupid answer :)
>> which taglib.xml?
>> I only put the tomahawk.taglib.xml in the web-inf
>> Is there another taglib that i need?
>>
>>
>>
>>
>>
>> Andrew Robinson-5 wrote:
>> >
>> > Stupid question, but have you checked that the taglib.xml is in the
>> > correct location in your WAR file?
>> >
>> > On Wed, Apr 16, 2008 at 3:39 PM, Paolo Scopa <pa...@yahoo.com>
>> wrote:
>> >>
>> >>
>> >> all, i have a problem with this simple myTest.xhtml
>> >>
>> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> >>
>> >> <t:document 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:t="http://myfaces.apache.org/tomahawk">
>> >>
>> >> <h:outputText value="Test H"/>
>> >> <t:outputText value="Test T"/>
>> >>
>> >> </t:document>
>> >>
>> >> It happens that it produces only one line with Test H
>> >>
>> >> Looking at the page source:
>> >>
>> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
>> >> <t:document xmlns="http://www.w3.org/1999/xhtml"
>> >> xmlns:t="http://myfaces.apache.org/tomahawk">Test H
>> >> <t:outputText value="Test T"></t:outputText>
>> >>
>> >> </t:document>
>> >>
>> >> I am sure there are all the lib etc and that the tomahawk.taglib.xml
>> is
>> >> in
>> >> the WEB-INF folder, it contains
>> >> <tag>
>> >> <tag-name>outputText</tag-name>
>> >> <component>
>> >>
>> >> <component-type>org.apache.myfaces.HtmlOutputText</component-type>
>> >>
>> >> <renderer-type>org.apache.myfaces.Text</renderer-type>
>> >> </component>
>> >> </tag>
>> >>
>> >> that web.xml contains
>> >> <context-param>
>> >> <param-name>facelets.LIBRARIES</param-name>
>> >>
>> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
>> >> </context-param>
>> >>
>> >> What else can i check?
>> >> (i mean, no other t: tag works...)
>> >>
>> >> Paolo
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734449.html
>>
>>
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734721.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: facelets tomahawk tag issue
Posted by Andrew Robinson <an...@gmail.com>.
Most third party components have facelets support built in, so just
check that all your taglibs that you set in your web.xml are in the
WAR:
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
</context-param>
Then look for:
yourApplication.war!/WEB-INF/tomahawk.taglib.xml
It needs to be in the same location as the param-value and in the WAR,
not your jar files.
On Wed, Apr 16, 2008 at 3:54 PM, Paolo Scopa <pa...@yahoo.com> wrote:
>
> more stupid answer :)
> which taglib.xml?
> I only put the tomahawk.taglib.xml in the web-inf
> Is there another taglib that i need?
>
>
>
>
>
> Andrew Robinson-5 wrote:
> >
> > Stupid question, but have you checked that the taglib.xml is in the
> > correct location in your WAR file?
> >
> > On Wed, Apr 16, 2008 at 3:39 PM, Paolo Scopa <pa...@yahoo.com> wrote:
> >>
> >>
> >> all, i have a problem with this simple myTest.xhtml
> >>
> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >>
> >> <t:document 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:t="http://myfaces.apache.org/tomahawk">
> >>
> >> <h:outputText value="Test H"/>
> >> <t:outputText value="Test T"/>
> >>
> >> </t:document>
> >>
> >> It happens that it produces only one line with Test H
> >>
> >> Looking at the page source:
> >>
> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
> >> <t:document xmlns="http://www.w3.org/1999/xhtml"
> >> xmlns:t="http://myfaces.apache.org/tomahawk">Test H
> >> <t:outputText value="Test T"></t:outputText>
> >>
> >> </t:document>
> >>
> >> I am sure there are all the lib etc and that the tomahawk.taglib.xml is
> >> in
> >> the WEB-INF folder, it contains
> >> <tag>
> >> <tag-name>outputText</tag-name>
> >> <component>
> >>
> >> <component-type>org.apache.myfaces.HtmlOutputText</component-type>
> >>
> >> <renderer-type>org.apache.myfaces.Text</renderer-type>
> >> </component>
> >> </tag>
> >>
> >> that web.xml contains
> >> <context-param>
> >> <param-name>facelets.LIBRARIES</param-name>
> >> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> >> </context-param>
> >>
> >> What else can i check?
> >> (i mean, no other t: tag works...)
> >>
> >> Paolo
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734449.html
>
>
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
Re: facelets tomahawk tag issue
Posted by Paolo Scopa <pa...@yahoo.com>.
more stupid answer :)
which taglib.xml?
I only put the tomahawk.taglib.xml in the web-inf
Is there another taglib that i need?
Andrew Robinson-5 wrote:
>
> Stupid question, but have you checked that the taglib.xml is in the
> correct location in your WAR file?
>
> On Wed, Apr 16, 2008 at 3:39 PM, Paolo Scopa <pa...@yahoo.com> wrote:
>>
>>
>> all, i have a problem with this simple myTest.xhtml
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <t:document 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:t="http://myfaces.apache.org/tomahawk">
>>
>> <h:outputText value="Test H"/>
>> <t:outputText value="Test T"/>
>>
>> </t:document>
>>
>> It happens that it produces only one line with Test H
>>
>> Looking at the page source:
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
>> <t:document xmlns="http://www.w3.org/1999/xhtml"
>> xmlns:t="http://myfaces.apache.org/tomahawk">Test H
>> <t:outputText value="Test T"></t:outputText>
>>
>> </t:document>
>>
>> I am sure there are all the lib etc and that the tomahawk.taglib.xml is
>> in
>> the WEB-INF folder, it contains
>> <tag>
>> <tag-name>outputText</tag-name>
>> <component>
>>
>> <component-type>org.apache.myfaces.HtmlOutputText</component-type>
>>
>> <renderer-type>org.apache.myfaces.Text</renderer-type>
>> </component>
>> </tag>
>>
>> that web.xml contains
>> <context-param>
>> <param-name>facelets.LIBRARIES</param-name>
>> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
>> </context-param>
>>
>> What else can i check?
>> (i mean, no other t: tag works...)
>>
>> Paolo
>>
>> --
>> View this message in context:
>> http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734449.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: facelets tomahawk tag issue
Posted by Andrew Robinson <an...@gmail.com>.
Stupid question, but have you checked that the taglib.xml is in the
correct location in your WAR file?
On Wed, Apr 16, 2008 at 3:39 PM, Paolo Scopa <pa...@yahoo.com> wrote:
>
>
> all, i have a problem with this simple myTest.xhtml
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <t:document 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:t="http://myfaces.apache.org/tomahawk">
>
> <h:outputText value="Test H"/>
> <t:outputText value="Test T"/>
>
> </t:document>
>
> It happens that it produces only one line with Test H
>
> Looking at the page source:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
> <t:document xmlns="http://www.w3.org/1999/xhtml"
> xmlns:t="http://myfaces.apache.org/tomahawk">Test H
> <t:outputText value="Test T"></t:outputText>
>
> </t:document>
>
> I am sure there are all the lib etc and that the tomahawk.taglib.xml is in
> the WEB-INF folder, it contains
> <tag>
> <tag-name>outputText</tag-name>
> <component>
> <component-type>org.apache.myfaces.HtmlOutputText</component-type>
> <renderer-type>org.apache.myfaces.Text</renderer-type>
> </component>
> </tag>
>
> that web.xml contains
> <context-param>
> <param-name>facelets.LIBRARIES</param-name>
> <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
> </context-param>
>
> What else can i check?
> (i mean, no other t: tag works...)
>
> Paolo
>
> --
> View this message in context: http://www.nabble.com/facelets-tomahawk-tag-issue-tp16734149p16734149.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>