You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by James McGrath <my...@jamespmcgrath.com> on 2005/10/18 05:38:13 UTC

No tag "panelNavigation2"

Hi All, I'm new to using Tomahawk, but have a bit of experience with 
JSF, anyway I'm having a frustrating time at the moment.

I'm sure there is a really simple solution to this - but I have been 
circling this problem for days and can't find a solution.

I have been trying to use the tomahawk library to produce a static menu 
like the one used in the examples: 
http://www.irian.at/myfaces/panelnavigation_1.jsf

I am getting the following exception:

javax.servlet.ServletException: /mainartistcategories.jsp(15,15) 
/menu.jsp(14,12) No tag "panelNavigation2" defined in tag library 
imported with prefix "t"

Where menu.jsp is a file included in mainartistcategories.jsp with the 
following statement: <%@ include file="menu.jsp" %>

Here is an except from menu.jsp:

------------------------------------------------------
<t:div id="subnavigation_outer">
    <t:div id="subnavigation">
        <t:panelNavigation2 id="menu1" layout="list" itemClass="mypage" 
activeItemClass="selected" openItemClass="selected" >
            <t:commandNavigation2 value="International" 
action="#{userBean.doChangeArtistType}" >
            <t:commandNavigation2 action="go_panelnavigation_1" >
                <f:verbatim>&#8250; </f:verbatim>
                <t:outputText value="Male" />
                <f:param name="artisttype" value="1"/>
                <f:param name="international" value="true"/>
            </t:commandNavigation2>

------------------------------------------------------
I basically copied the code from the examples and put it in my app. The 
file mainartistcategories.jsp contains the taglib import statement: <%@ 
taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

At first I thought the problem was that I hadn't included the tomahawk 
library on the classpath, but that wasn't the case. Then I thought I had 
an old version, so I got the nightly build but still had the same error.

It's strange cause if I use the tag t:panelNavigation the tag is found. 
I also have the same problem with t:commandNavigation2.

Maybe it has something to do with my web.xml, but I can't see any 
mistakes there - I pretty much copied and pasted from the example for 
that as well. I'm using NetBeans 4.1 with the built in Tomcat server 
(5.5.7) and even NetBeans knows that - No tag "panelNavigation2" defined 
in tag library imported with prefix "t". Maybe it has something to do 
with things being imported from the http://myfaces.apache.org/tomahawk 
url...

Anyway, hopefully someone has seen this before and the solution is easy. 
Any suggestions would be greatly appreciated.

Cheers..




Re: No tag "panelNavigation2"

Posted by Luca Conte <ba...@email.it>.
It is in nightly build!


James McGrath ha scritto:

> Hi All, I'm new to using Tomahawk, but have a bit of experience with
> JSF, anyway I'm having a frustrating time at the moment.
>
> I'm sure there is a really simple solution to this - but I have been
> circling this problem for days and can't find a solution.
>
> I have been trying to use the tomahawk library to produce a static
> menu like the one used in the examples:
> http://www.irian.at/myfaces/panelnavigation_1.jsf
>
> I am getting the following exception:
>
> javax.servlet.ServletException: /mainartistcategories.jsp(15,15)
> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library
> imported with prefix "t"
>
> Where menu.jsp is a file included in mainartistcategories.jsp with the
> following statement: <%@ include file="menu.jsp" %>
>
> Here is an except from menu.jsp:
>
> ------------------------------------------------------
> <t:div id="subnavigation_outer">
>    <t:div id="subnavigation">
>        <t:panelNavigation2 id="menu1" layout="list" itemClass="mypage"
> activeItemClass="selected" openItemClass="selected" >
>            <t:commandNavigation2 value="International"
> action="#{userBean.doChangeArtistType}" >
>            <t:commandNavigation2 action="go_panelnavigation_1" >
>                <f:verbatim>&#8250; </f:verbatim>
>                <t:outputText value="Male" />
>                <f:param name="artisttype" value="1"/>
>                <f:param name="international" value="true"/>
>            </t:commandNavigation2>
>
> ------------------------------------------------------
> I basically copied the code from the examples and put it in my app.
> The file mainartistcategories.jsp contains the taglib import
> statement: <%@ taglib uri="http://myfaces.apache.org/tomahawk"
> prefix="t"%>
>
> At first I thought the problem was that I hadn't included the tomahawk
> library on the classpath, but that wasn't the case. Then I thought I
> had an old version, so I got the nightly build but still had the same
> error.
>
> It's strange cause if I use the tag t:panelNavigation the tag is
> found. I also have the same problem with t:commandNavigation2.
>
> Maybe it has something to do with my web.xml, but I can't see any
> mistakes there - I pretty much copied and pasted from the example for
> that as well. I'm using NetBeans 4.1 with the built in Tomcat server
> (5.5.7) and even NetBeans knows that - No tag "panelNavigation2"
> defined in tag library imported with prefix "t". Maybe it has
> something to do with things being imported from the
> http://myfaces.apache.org/tomahawk url...
>
> Anyway, hopefully someone has seen this before and the solution is
> easy. Any suggestions would be greatly appreciated.
>
> Cheers..
>
>
>
>


Re: No tag "panelNavigation2"

Posted by James McGrath <my...@jamespmcgrath.com>.
Thanks for the quick response. I am using MyFaces 1.1.0.

You are right, panelNavigation2 does not appear in
META-INF/tomahawk.tld, so it could be something in a new release.

I think I will use the panelNavigation tag instead (I'm really not sure
what the difference between the two is actually). Anyone know of the
differences? The documentation
(http://myfaces.apache.org/tlddoc/tomahawk/) for both is exactly the
same. Anyone know what version this documentation is for?

I think I was making the wrong assumption that the examples to be found
on the web (http://www.irian.at/myfaces/) were the same ones as you can
download from from the mirrors. It's strange cause the example site say
it is MyFaces (version 1.1.0). Does anyone else think this is a mistake?
If so, I will let Martin Marinschek know about it.

Cheers.

Simon Kitching wrote:
> James McGrath wrote:
>> Hi All, I'm new to using Tomahawk, but have a bit of experience with 
>> JSF, anyway I'm having a frustrating time at the moment.
>>
>> I'm sure there is a really simple solution to this - but I have been 
>> circling this problem for days and can't find a solution.
>>
>> I have been trying to use the tomahawk library to produce a static 
>> menu like the one used in the examples: 
>> http://www.irian.at/myfaces/panelnavigation_1.jsf
>>
>> I am getting the following exception:
>>
>> javax.servlet.ServletException: /mainartistcategories.jsp(15,15) 
>> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library 
>> imported with prefix "t"
>>
>> Where menu.jsp is a file included in mainartistcategories.jsp with 
>> the following statement: <%@ include file="menu.jsp" %>
>>
>> Here is an except from menu.jsp:
>>
>> ------------------------------------------------------
>> <t:div id="subnavigation_outer">
>>    <t:div id="subnavigation">
>>        <t:panelNavigation2 id="menu1" layout="list" 
>> itemClass="mypage" activeItemClass="selected" openItemClass="selected" >
>
> Looking at the META-INF/tomahawk.tld file inside the tomahawk.jar file 
> for the 1.1.0 release, I don't see any entry for a "panelNavigation2" 
> tag.
>
> Perhaps this tag was added after the 1.1.0 release.
> You don't say what version of myfaces you are using.
>
> Regards,
>
> Simon
>


Re: No tag "panelNavigation2"

Posted by James McGrath <my...@jamespmcgrath.com>.
Ok, so panelNavigation2 is just a temporary development version of 
panelNavigation - no need for a response if this is correct.

Thanks everybody for your help.

Cheers.

Thomas Spiegl wrote:
> I plan to replace panelNavigation by panelNavigation2 the next days. I
> didn't want to break panelNavigation during development phase,
> therefore i invented panelNavigation2.
>
> If you want to use panelNavigation2, please use a nightly build >= 2005-10-15.
>
> panelNavigation2 has a layout attribute:
> layout="table" renders a table (= old behaviour)
> laout="list" renders the menu as list (= default)
>
> Thomas
>
>
> On 10/18/05, James McGrath <mo...@jamespmcgrath.com> wrote:
>   
>> Thanks for the quick response. I am using MyFaces 1.1.0.
>>
>> You are right, panelNavigation2 does not appear in
>> META-INF/tomahawk.tld, so it could be something in a new release.
>>
>> I think I will use the panelNavigation tag instead (I'm really not sure
>> what the difference between the two is actually). Anyone know of the
>> differences? The documentation
>> (http://myfaces.apache.org/tlddoc/tomahawk/) for both is exactly the
>> same. Anyone know what version this documentation is for?
>>
>> I think I was making the wrong assumption that the examples to be found
>> on the web (http://www.irian.at/myfaces/) were the same ones as you can
>> download from from the mirrors. It's strange cause the example site say
>> it is MyFaces (version 1.1.0). Does anyone else think this is a mistake?
>> If so, I will let Martin Marinschek know about it.
>>
>> Cheers.
>>
>> Simon Kitching wrote:
>>     
>>> James McGrath wrote:
>>>       
>>>> Hi All, I'm new to using Tomahawk, but have a bit of experience with
>>>> JSF, anyway I'm having a frustrating time at the moment.
>>>>
>>>> I'm sure there is a really simple solution to this - but I have been
>>>> circling this problem for days and can't find a solution.
>>>>
>>>> I have been trying to use the tomahawk library to produce a static
>>>> menu like the one used in the examples:
>>>> http://www.irian.at/myfaces/panelnavigation_1.jsf
>>>>
>>>> I am getting the following exception:
>>>>
>>>> javax.servlet.ServletException: /mainartistcategories.jsp(15,15)
>>>> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library
>>>> imported with prefix "t"
>>>>
>>>> Where menu.jsp is a file included in mainartistcategories.jsp with
>>>> the following statement: <%@ include file="menu.jsp" %>
>>>>
>>>> Here is an except from menu.jsp:
>>>>
>>>> ------------------------------------------------------
>>>> <t:div id="subnavigation_outer">
>>>>    <t:div id="subnavigation">
>>>>        <t:panelNavigation2 id="menu1" layout="list"
>>>> itemClass="mypage" activeItemClass="selected" openItemClass="selected" >
>>>>         
>>> Looking at the META-INF/tomahawk.tld file inside the tomahawk.jar file
>>> for the 1.1.0 release, I don't see any entry for a "panelNavigation2"
>>> tag.
>>>
>>> Perhaps this tag was added after the 1.1.0 release.
>>> You don't say what version of myfaces you are using.
>>>
>>> Regards,
>>>
>>> Simon
>>>
>>>       
>>
>>     
>
>   

Re: No tag "panelNavigation2"

Posted by Thomas Spiegl <th...@gmail.com>.
I plan to replace panelNavigation by panelNavigation2 the next days. I
didn't want to break panelNavigation during development phase,
therefore i invented panelNavigation2.

If you want to use panelNavigation2, please use a nightly build >= 2005-10-15.

panelNavigation2 has a layout attribute:
layout="table" renders a table (= old behaviour)
laout="list" renders the menu as list (= default)

Thomas


On 10/18/05, James McGrath <mo...@jamespmcgrath.com> wrote:
> Thanks for the quick response. I am using MyFaces 1.1.0.
>
> You are right, panelNavigation2 does not appear in
> META-INF/tomahawk.tld, so it could be something in a new release.
>
> I think I will use the panelNavigation tag instead (I'm really not sure
> what the difference between the two is actually). Anyone know of the
> differences? The documentation
> (http://myfaces.apache.org/tlddoc/tomahawk/) for both is exactly the
> same. Anyone know what version this documentation is for?
>
> I think I was making the wrong assumption that the examples to be found
> on the web (http://www.irian.at/myfaces/) were the same ones as you can
> download from from the mirrors. It's strange cause the example site say
> it is MyFaces (version 1.1.0). Does anyone else think this is a mistake?
> If so, I will let Martin Marinschek know about it.
>
> Cheers.
>
> Simon Kitching wrote:
> > James McGrath wrote:
> >> Hi All, I'm new to using Tomahawk, but have a bit of experience with
> >> JSF, anyway I'm having a frustrating time at the moment.
> >>
> >> I'm sure there is a really simple solution to this - but I have been
> >> circling this problem for days and can't find a solution.
> >>
> >> I have been trying to use the tomahawk library to produce a static
> >> menu like the one used in the examples:
> >> http://www.irian.at/myfaces/panelnavigation_1.jsf
> >>
> >> I am getting the following exception:
> >>
> >> javax.servlet.ServletException: /mainartistcategories.jsp(15,15)
> >> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library
> >> imported with prefix "t"
> >>
> >> Where menu.jsp is a file included in mainartistcategories.jsp with
> >> the following statement: <%@ include file="menu.jsp" %>
> >>
> >> Here is an except from menu.jsp:
> >>
> >> ------------------------------------------------------
> >> <t:div id="subnavigation_outer">
> >>    <t:div id="subnavigation">
> >>        <t:panelNavigation2 id="menu1" layout="list"
> >> itemClass="mypage" activeItemClass="selected" openItemClass="selected" >
> >
> > Looking at the META-INF/tomahawk.tld file inside the tomahawk.jar file
> > for the 1.1.0 release, I don't see any entry for a "panelNavigation2"
> > tag.
> >
> > Perhaps this tag was added after the 1.1.0 release.
> > You don't say what version of myfaces you are using.
> >
> > Regards,
> >
> > Simon
> >
>
>
>

Re: No tag "panelNavigation2"

Posted by James McGrath <mo...@jamespmcgrath.com>.
Thanks for the quick response. I am using MyFaces 1.1.0.

You are right, panelNavigation2 does not appear in 
META-INF/tomahawk.tld, so it could be something in a new release.

I think I will use the panelNavigation tag instead (I'm really not sure 
what the difference between the two is actually). Anyone know of the 
differences? The documentation 
(http://myfaces.apache.org/tlddoc/tomahawk/) for both is exactly the 
same. Anyone know what version this documentation is for?

I think I was making the wrong assumption that the examples to be found 
on the web (http://www.irian.at/myfaces/) were the same ones as you can 
download from from the mirrors. It's strange cause the example site say 
it is MyFaces (version 1.1.0). Does anyone else think this is a mistake? 
If so, I will let Martin Marinschek know about it.

Cheers.

Simon Kitching wrote:
> James McGrath wrote:
>> Hi All, I'm new to using Tomahawk, but have a bit of experience with 
>> JSF, anyway I'm having a frustrating time at the moment.
>>
>> I'm sure there is a really simple solution to this - but I have been 
>> circling this problem for days and can't find a solution.
>>
>> I have been trying to use the tomahawk library to produce a static 
>> menu like the one used in the examples: 
>> http://www.irian.at/myfaces/panelnavigation_1.jsf
>>
>> I am getting the following exception:
>>
>> javax.servlet.ServletException: /mainartistcategories.jsp(15,15) 
>> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library 
>> imported with prefix "t"
>>
>> Where menu.jsp is a file included in mainartistcategories.jsp with 
>> the following statement: <%@ include file="menu.jsp" %>
>>
>> Here is an except from menu.jsp:
>>
>> ------------------------------------------------------
>> <t:div id="subnavigation_outer">
>>    <t:div id="subnavigation">
>>        <t:panelNavigation2 id="menu1" layout="list" 
>> itemClass="mypage" activeItemClass="selected" openItemClass="selected" >
>
> Looking at the META-INF/tomahawk.tld file inside the tomahawk.jar file 
> for the 1.1.0 release, I don't see any entry for a "panelNavigation2" 
> tag.
>
> Perhaps this tag was added after the 1.1.0 release.
> You don't say what version of myfaces you are using.
>
> Regards,
>
> Simon
>

Re: No tag "panelNavigation2"

Posted by Simon Kitching <sk...@obsidium.com>.
James McGrath wrote:
> Hi All, I'm new to using Tomahawk, but have a bit of experience with 
> JSF, anyway I'm having a frustrating time at the moment.
> 
> I'm sure there is a really simple solution to this - but I have been 
> circling this problem for days and can't find a solution.
> 
> I have been trying to use the tomahawk library to produce a static menu 
> like the one used in the examples: 
> http://www.irian.at/myfaces/panelnavigation_1.jsf
> 
> I am getting the following exception:
> 
> javax.servlet.ServletException: /mainartistcategories.jsp(15,15) 
> /menu.jsp(14,12) No tag "panelNavigation2" defined in tag library 
> imported with prefix "t"
> 
> Where menu.jsp is a file included in mainartistcategories.jsp with the 
> following statement: <%@ include file="menu.jsp" %>
> 
> Here is an except from menu.jsp:
> 
> ------------------------------------------------------
> <t:div id="subnavigation_outer">
>    <t:div id="subnavigation">
>        <t:panelNavigation2 id="menu1" layout="list" itemClass="mypage" 
> activeItemClass="selected" openItemClass="selected" >

Looking at the META-INF/tomahawk.tld file inside the tomahawk.jar file 
for the 1.1.0 release, I don't see any entry for a "panelNavigation2" tag.

Perhaps this tag was added after the 1.1.0 release.
You don't say what version of myfaces you are using.

Regards,

Simon