Thanks for the reply, I'm really confused, but it's probably something small
I've missed! The MyFaces example works fine on the same server. I was really
just experimenting, so the code is really simple: 

<[EMAIL PROTECTED] contentType="text/html"%>
<[EMAIL PROTECTED] pageEncoding="UTF-8"%>

<[EMAIL PROTECTED] uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> 
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd";>

<f:loadBundle basename="bundles.Messages" var="Message"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <!-- JSCook Menu -->
            <script language="JavaScript" src="jscookmenu/JSCookMenu.js"
type="text/javascript"><!--//--></script>
            <script language="JavaScript" src="jscookmenu/MyFacesHack.js"
type="text/javascript"><!--//--></script>
            <script language="JavaScript"
src="jscookmenu/ThemeOffice/theme.js"><!--//--></script>
            <link rel="stylesheet" href="jscookmenu/ThemeOffice/theme.css"
type="text/css"/>
        <!-- JSCook Menu End-->
        
        <title>JSCookMenu</title>
    </head>
    <body>
        <f:view>
            <t:jscookMenu layout="hbr" theme="ThemeOffice">
            <t:navigationMenuItem id="nav_home"
itemLabel="#{Message.nav_home}"  action="go_home" />
            <t:navigationMenuItem id="nav_search"
itemLabel="#{Message.nav_search}">
                <t:navigationMenuItem id="nav_search_name"
itemLabel="#{Message.nav_search_name}" icon="images/bullet.gif"
action="go_search_name" />
                <t:navigationMenuItem id="nav_search_address"
itemLabel="#{Message.nav_search_address}" icon="images/bullet.gif"
action="go_search_address" split="true"/>
                <t:navigationMenuItem id="nav_search_transaction"
itemLabel="#{Message.nav_search_transaction}" icon="images/bullet.gif"
action="go_search_transaction" />
            </t:navigationMenuItem>
        </t:jscookMenu>
        </f:view>        
    </body>
</html>


The generated source contains this script:
<!--
var id0_menu =
[[null, '0', 'id0_menu:go_home', 'linkDummyForm', null],
[null, '0', null, 'linkDummyForm', null,[' images/bullet.gif ', '0',
'id0_menu:go_search_name', 'linkDummyForm', null],
_cmSplit,[' images/bullet.gif ', '0', 'id0_menu:go_search_address',
'linkDummyForm', null],
[' images/bullet.gif ', '0', 'id0_menu:go_search_transaction',
'linkDummyForm', null]]];
//--></script>
--
View this message in context: 
http://www.nabble.com/using-split-in-jscookmenu-breaks-it-t1362900.html#a3665654
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to