6 Replies Latest reply on Nov 4, 2006 4:34 PM by tazo



      I try to intergate a JSCookMenu in my XHTML pages.
      I respect the different rules (css declaration, javascript declaration) and my declared files are avaible in my internet browser.

      But I could't have any menu, just à simple button appear...

      Somebody have any idea ?


      Best regards

        • 1. Re: SEAM - TOMAHAWK -> JSCOOKMENU

          Some questions:

          1. Which version of MyFaces and Tomahawk are you using?
          2. Are you using facelets?
          3. Have you successfully used other Tomahawk components?

          Personally, I abandoned the Tomahawk 1.1.3 JsCookMenu because it didn't expose enough of the menu settings for me to integrate it into my app's look and feel.

          I'm actually abandoning all of Tomohawk as fast as I can, as it all just seems really half-baked.

          • 2. Re: SEAM - TOMAHAWK -> JSCOOKMENU


            I'm actually abandoning all of Tomohawk as fast as I can, as it all just seems really half-baked.

            No shit. :-(

            The Trinidad stuff seems really good though.

            BTW, thanks to Mr. Todd Smart, we now have Ajax4JSF integrated really nicely into the Seam booking demo. This stuff is excellent (though it does not seem totally bugfree just yet).

            • 3. Re: SEAM - TOMAHAWK -> JSCOOKMENU

              I think I had a similar problem when I first tried to use JSCookMenu with Seam and Facelets. The problem though appeared not to be about Seam, it was Facelets instead. You have to explicitely declare all Tomahawk components if you use Facelets. See MyFaces Wiki:

              A rendering class for JSCookMenu must be declared, otherwise nothing renderers to the view.

              • 4. Re: SEAM - TOMAHAWK -> JSCOOKMENU

                Hi all,
                I'm using JBoss 4.0.4 with Seam 1.0.1 and myfaces tomahawk 1.1.3.
                I'm experiencing problems with jscookmenu: menus are rendered fine but when I press an item a javascript error appears: 'elements.jscook_action is null or not an object'.
                Magically, in a test page, if I remove <f:view></f:view> tag the problem disappears, but obviously it gives problems to other tags in a non-test page.
                The other tomahawk components are working fine.
                Can someone help me?
                Thanks in advance.

                • 5. Re: SEAM - TOMAHAWK -> JSCOOKMENU

                  Sorry, this is the Seam forum. We can't help you solve every problem to do with MyFaces incredibly broken Tomahawk stuff. We try to tell people not to use it, but if they insist on using it, they should go to the MyFaces mailing lists for help.

                  • 6. Re: SEAM - TOMAHAWK -> JSCOOKMENU

                    jscookmenu control is simply broken in 1.1.3 (they just commented out some code related to "dummy form" workaround, removed in that release). You can try last snapshot of tomahawk 1.1.5, looks like they fixed this issue (i didn't test). Or if you are using facelets then you can simply add required form field:

                     <input type="hidden" name="jscook_action" />
                     <t:jscookMenu layout="hbr" theme="ThemeIE">
                     <t:navigationMenuItems value="#{menu.mainMenu}" />