Paul,

Sorry for this very late answer.
I am not sure I understand you answer.

Are you saying the HTML generated by <t:jscookMenu> is
missing <input type="hidden" name="jscook_action" />?
The code which works is:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
         "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets";
               xmlns:h="http://java.sun.com/jsf/html";
               xmlns:t="http://myfaces.apache.org/tomahawk";
               template="WEB-INF/layout/template.xhtml"
               >
 <ui:define name="title">Essai de menu</ui:define>
 <ui:define name="menubar">
   <h:form>
     <input type="hidden" name="jscook_action" />
     <t:jscookMenu layout="hbr" theme="ThemeOffice" id="main_menu">
       <t:navigationMenuItems value="#{dynamicMenu.menu}" />
     </t:jscookMenu>
     </h:form>

 </ui:define>
</ui:composition>
Can you open an issue and submit a patch.

Is it really a bug?

Pierre

Paul Spencer



Pierre Raoul wrote:
Paul,

I asked a similar question [1].  I suspect their is a bug because the
action is not called when the menu item is clicked.  I do not think
you want the action called when the menu item is generated, which
would occur when the EL is evaluated.

Thank you for your reply.

I found the answer: a tag

       <input type="hidden" name="jscook_action" />

is needed before the jscookmenu one. I still have some issues with the menu styles, but it works.

Pierre











  • Re: jscookmenu Pierre Raoul

Reply via email to