You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Garner Shawn <sh...@gmail.com> on 2006/03/08 06:19:20 UTC

[tomahawk + panelNavigation2 + Facelets] getting empty UL tags

Thing is if I used panelNavigation and commandNavigation everything is fine
but if I use anelNavigation2 and commandNavigation2 then all I get is an
empty <UL></UL> tag rendered and no links.

Any help?

I have the following code


.xhtml file

xmlns:t="http://myfaces.apache.org/tomahawk"


<t:panelNavigation2 id="panelNavigation1"
                        itemClass="navItemClass"
                      openItemClass="navOpenItemClass"
                      activeItemClass="navActiveItemClass"
                      separatorClass="navSeparatorClass">
        <t:commandNavigation2 id="homeButtonLink2" action="home"
value="Home"/>
        <t:commandNavigation2 id="productsButtonLink2" action="products"
value="Software Products">
            <t:commandNavigation2 id="winemakerTrackerButtonLink2"
action="winemakertracker" value="WinemakerTracker">
                <t:commandNavigation2 id="winemakerTrackerDownloadLink2"
action="winemakertrackerDownload" value="Download"/>
            </t:commandNavigation2>
        </t:commandNavigation2>
        <t:commandNavigation2 id="customButtonLink2" action="custom_dev"
value="Custom Development"/>
        <t:commandNavigation2 id="philosophyButtonLink2" action="philosophy"
value="Company Philosophy"/>
        <t:commandNavigation2 id="companyInfoButtonLink2" action="comp_info"
value="Company Information"/>
        <t:commandNavigation2 id="newsButtonLink2" action="news"
value="News"/>
        <t:commandNavigation2 id="contactUsButtonLink2" action="contact_us"
value="Contact Us"/>
    </t:panelNavigation2>


tomahawk.taglib.xml

<tag>
        <tag-name>panelNavigation2</tag-name>
        <component>
            <component-type>org.apache.myfaces.HtmlPanelNavigationMenu
</component-type>
            <renderer-type>org.apache.myfaces.NavigationMenu</renderer-type>
        </component>
    </tag>

<tag>
        <tag-name>commandNavigation2</tag-name>
        <component>
            <component-type>org.apache.myfaces.HtmlCommandNavigation
</component-type>
            <renderer-type>javax.faces.Link</renderer-type>
        </component>
    </tag>


web.xml

    <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>
            org.apache.myfaces.component.html.util.ExtensionsFilter
        </filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
            <description>
                Set the size limit for uploaded files. Format: 10 - 10
                bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
            </description>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
            <description>
                Set the threshold size - files below this limit are
                stored in memory, files above this limit are stored on
                disk.

                Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
            </description>
        </init-param>
        <!--        <init-param>
            <param-name>uploadRepositoryPath</param-name>
            <param-value>/temp</param-value>
            <description>Set the path where the intermediary files will be
stored.
            </description>
            </init-param>-->
    </filter>

    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.xhtml</url-pattern>
    </filter-mapping>