aspose file tools*
The moose likes JSF and the fly likes Does anyboby use Myfaces JsCookMenu????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Does anyboby use Myfaces JsCookMenu????? " Watch "Does anyboby use Myfaces JsCookMenu????? " New topic
Author

Does anyboby use Myfaces JsCookMenu?????

Martha Sibretti
Greenhorn

Joined: Jun 03, 2005
Posts: 2
I can't put to work jscookMenu
I do the following question and nobody replies.

JSCOOKMENU doesn't work with myfaces? What do you use instead??


-----

Example:

<title>MyFaces - the free JSF Implementation</title>
<LINK rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/basic.css">
<LINK rel="stylesheet" href="<%=request.getContextPath()%>/jscookmenu/ThemeOffice/theme.css" type="text/css">
</head>



<body bgcolor="white">
<f:view>

<h anelGrid id="header_group2" columns="1" styleClass="pageHeader2" columnClasses="pageHeader2col1" >
<script language="JavaScript" src="<%=request.getContextPath()%>/jscookmenu/JSCookMenu.js" type="text/javascript"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/jscookmenu/ThemeOffice/theme.js" type="text/javascript"></script>


<x:jscookMenu layout="hbr" theme="ThemeOffice" >
<%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel
Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul
respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
*/%>
<x:navigationMenuItem id="nav_1" itemLabel="#{Message['menu_item1']}" action="go_home" />
<x:navigationMenuItem id="nav_2" itemLabel="#{Message['menu_item2']}" >
<x:navigationMenuItem id="nav_2_1" itemLabel="#{Message['menu_item2_item1']}" action="go_paciente" icon="images/myfaces.gif" />
</x:navigationMenuItem>
<x:navigationMenuItem id="nav_3" itemLabel="#{Messages['menu_item3']}" action="go_paciente" icon="images/myfaces.gif" />
</x:jscookMenu>
</h anelGrid>

</f:view>

</body>
</HTML>

and the Javascript error is that cmTheneOffice isnot defined???

and I modified theme.js as say the documentation, the variable:

var cmThemeOfficeBase = 'jscookmenu/ThemeOffice/';

Don't understand what's worng...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Does anyboby use Myfaces JsCookMenu?????