• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Does anyboby use Myfaces JsCookMenu?????  RSS feed

 
Greenhorn
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??


-----

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...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!