Hello,
I'm trying to use jsCookMenu.
I tested the example from http://wiki.apache.org/myfaces/JSCook_Menu.
They worked fine but the EL expression are not evaluated. In the
generated page, I got for example:
<form id="_id2" name="_id2" method="post" onkeypress="return _submitOnEnter(event,'_id2');"
action="/seam-popsuite/testTomahawkMenu.seam">
<script type="text/javascript">
var id2_main_menu_menu =
[[null, 'nav_Home', 'id2_main_menu_menu:A]go_home', '_id2', null],
[null, 'nav_Examples', null, '_id2', null,[null, 'nav_Sample_1',
'id2_main_menu_menu:A]#{dynamicMenu.someActionA}', '_id2', null],
_cmSplit,
['<img src="images/myfaces.gif"/>', 'nav_Sample_2',
'id2_main_menu_menu:A]#{dynamicMenu.someActionB}', '_id2', null],
[...]
Any idea?
Regards
Pierre
PS:
I work with:
- Seam 1.1.0
- MyFaces 1.1.4
- Facelets 1.1.11
- tomahawk 1.1.5 snapshot 16/11/06
- Trinidad m1 snapshot 16/11/06
- Ajax4jsf 1.0.5 (with the a4j-trinidad.jar file)
The file is:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:t="http://myfaces.apache.org/tomahawk"
>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>MyFaces - the free JSF Implementation: jsCookMenu</title>
</head>
<body>
<h:form>
<t:jscookMenu layout="hbr" theme="ThemeOffice" id="main_menu">
<t:navigationMenuItem id="nav_1" itemLabel="nav_Home"
itemValue="go_home" action="go_home"/>
<t:navigationMenuItem id="nav_2" itemLabel="nav_Examples">
<t:navigationMenuItem id="nav_2_1" itemLabel="nav_Sample_1"
action="#{dynamicMenu.someActionA}" />
<t:navigationMenuItem id="nav_2_2" itemLabel="nav_Sample_2"
action="#{dynamicMenu.someActionB}" />
</t:navigationMenuItem>
</t:jscookMenu>
</h:form>
</body>
</html>
with template:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<trh:html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:trh="http://myfaces.apache.org/trinidad/html"
>
<trh:head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>
<ui:insert name="title">
<h:outputText value="#{messages['view.template.window.title']}"/>
</ui:insert>
</title>
<link href="css/popsuite-screen.css" rel="stylesheet" type="text/css" />
<ui:insert name="style"/>
<ui:insert name="script"/>
</trh:head>
<trh:body>
<div id="document">
<div id="container">
<ui:insert name="container">
<div id="sidebar">
<ui:insert name="sidebar"/>
</div>
<div id="content">
<ui:insert name="fullContent">
<ui:insert name="content"/>
<ui:include src="conversations.xhtml" />
</ui:insert>
</div>
</ui:insert>
</div>
</div>
</trh:body>
</trh:html>