You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Raymund Nickel <ra...@raymund.exxs.net> on 2007/05/05 18:16:57 UTC

problem "jscook menu is not embedded in a form."

Hi,
i have a problem with jscook menu. The first time im opening the
mainpage which is containing the jscook menu, everything is fine. But
when im hitting a menu item im getting the following error:

javax.servlet.ServletException: ServletException in
'/WEB-INF/tiles/main-layout.jsp': ServletException in
'/WEB-INF/tiles/menu.jsp': jscook menu is not embedded in a form.
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
...


This error sounds easy to fix... "jscook menu is not embedded in a
form.", but the jscook already is embedded in a form and the error still
apears.

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<div>
	<h:form>
		<t:jscookMenu id="mainMenu" layout="hbr" theme="ThemeOffice">
			<t:navigationMenuItems id="navItems"
value="#{mainMenuHandler.panelNavigationItems}" />
		</t:jscookMenu>
	</h:form>
</div>

Im using tiles and tomahawk 1.1.5
Maybe someone has an idea how to fix this error.
Thanks for help,
ray