This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does anyboby use Myfaces JsCookMenu?????

 
Martha Sibretti
Greenhorn
Posts: 2
  • 0
  • 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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic