Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does anyboby use Myfaces JsCookMenu?????

Martha Sibretti
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??



<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">

<body bgcolor="white">

<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
<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 id="nav_3" itemLabel="#{Messages['menu_item3']}" action="go_paciente" icon="images/myfaces.gif" />
</h anelGrid>



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...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic