myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Jaquet <a.jaq...@avintis.com>
Subject t:jscookMenu doesn't appear
Date Thu, 29 Jun 2006 06:02:33 GMT
Hi,

I'm trying to use Jscookmenu into a page, I placed it into <head></head> 
but when I load my page nothing appear.
If I look the source code of the page I doesn't see anything in relation 
with the  menu.

here my jsf page :
thx for your help

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() 
+ ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <base href="<%=basePath%>">

        <title>eBonus</title>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">

        <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
        <link rel="stylesheet" type="text/css" href="style/core.css">

        <t:jscookMenu layout="hbr" theme="ThemeOffice" 
styleLocation="css/jscookmenu">
        <t:navigationMenuItems id="nav_0"
            value="#{navigationMenu.JSCookMenuNavigationItems}" />
        <t:navigationMenuItem id="nav_1" 
actionListener="#{navigationMenu.actionListener}"
            itemLabel="Home" itemValue="go_home" action="go_home"/>
        <t:navigationMenuItem id="nav_2"
            itemLabel="#{example_messages['nav_Examples']}">
            <t:navigationMenuItem id="nav_2_1"
                itemLabel="#{example_messages['nav_Sample_1']}" 
action="go_sample1" />
            <t:navigationMenuItem split="true"> </t:navigationMenuItem>
            <t:navigationMenuItem id="nav_2_2"
                itemLabel="#{example_messages['nav_Sample_2']}" 
action="go_sample2"
                icon="images/myfaces.gif" />
            <t:navigationMenuItem id="nav_2_3"
                itemLabel="#{example_messages['nav_Validate']}" 
action="go_validate"
                icon="images/myfaces.gif" />
            <t:navigationMenuItem id="nav_2_4"
                itemLabel="#{example_messages['nav_Components']}"
                icon="images/component.gif" split="true">
                <t:navigationMenuItem id="nav_2_4_1"
                    itemLabel="#{example_messages['nav_sortTable']}"
                    action="go_sortTable" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_2"
                    itemLabel="#{example_messages['nav_Selectbox']}"
                    action="go_selectbox" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_3"
                    itemLabel="#{example_messages['nav_FileUpload']}"
                    action="go_fileupload" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_4"
                    itemLabel="#{example_messages['nav_TabbedPane']}"
                    action="go_tabbedPane" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_5"
                    itemLabel="#{example_messages['nav_Calendar']}"
                    action="go_calendar" icon="images/myfaces.gif" 
split="true" />
                <t:navigationMenuItem id="nav_2_4_6"
                    itemLabel="#{example_messages['nav_Popup']}" 
action="go_popup"
                    icon="images/myfaces.gif" split="true" />
                <t:navigationMenuItem id="nav_2_4_7"
                    itemLabel="#{example_messages['nav_Date']}" 
action="go_date"
                    icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_8"
                    itemLabel="#{example_messages['nav_InputHtml']}"
                    action="go_inputHtml" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_9"
                    itemLabel="#{example_messages['nav_tree2']}" 
action="go_tree2"
                    icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_10"
                    itemLabel="#{example_messages['nav_treeTable']}"
                    action="go_treeTable" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_12"
                    itemLabel="#{example_messages['nav_dataScroller']}"
                    action="go_datascroller" icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_13"
                    itemLabel="#{example_messages['nav_css']}" 
action="go_css"
                    icon="images/myfaces.gif" />
                <t:navigationMenuItem id="nav_2_4_14"
                    itemLabel="#{example_messages['nav_newspaperTable']}"
                    action="go_newspaperTable" icon="images/myfaces.gif" />
            </t:navigationMenuItem>
        </t:navigationMenuItem>
        <t:navigationMenuItem id="nav_3"
            itemLabel="Apache MyFaces Home" 
action="http://myfaces.apache.org" />
    </t:jscookMenu>

    </head>


    <body>
        <f:view>
            <h:form>
                <f:loadBundle basename="Messages" var="text" />
<!-- Begin HEADER -->               
                <jsp:include page="/jspf/header.jspf"/>
<!-- End HEADER -->
<!-- Begin BODY -->
                <hr>
                <jsp:doBody />
                <hr>
<!-- End BODY -->

<!-- Begin FOOTER -->               
                <h:commandButton id="btnLocaleToFr" value="To FR" 
actionListener="#{utilGui.changeLocaleToFrench}" rendered="true" />
                <h:commandButton id="btnLocaleToEn" value="To EN" 
actionListener="#{utilGui.changeLocaleToEnglish}" rendered="true" />
                <h:commandButton id="btnLocaleToDe" value="To DE" 
actionListener="#{utilGui.changeLocaleToGerman}" rendered="true" />
                <h:commandButton id="btnLocaleToIt" value="To IT" 
actionListener="#{utilGui.changeLocaleToItalian}" rendered="true" />
                <BR><BR>

                <jsp:include page="/jspf/footer.jspf"/>
<!-- Begin FOOTER -->
            </h:form>
        </f:view>
    </body>
</html>


Mime
View raw message