-
1. Re: SEAM - TOMAHAWK -> JSCOOKMENU
texan Oct 13, 2006 1:42 PM (in response to benoitml)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
gavin.king Oct 13, 2006 1:50 PM (in response to benoitml)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
alexeinov Nov 1, 2006 11:41 AM (in response to benoitml)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:
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
A rendering class for JSCookMenu must be declared, otherwise nothing renderers to the view. -
4. Re: SEAM - TOMAHAWK -> JSCOOKMENU
adt Nov 4, 2006 6:09 AM (in response to benoitml)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
gavin.king Nov 4, 2006 2:02 PM (in response to benoitml)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
tazo Nov 4, 2006 4:34 PM (in response to benoitml)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:
<h:form> <input type="hidden" name="jscook_action" /> <t:jscookMenu layout="hbr" theme="ThemeIE"> <t:navigationMenuItems value="#{menu.mainMenu}" /> </t:jscookMenu> </h:form>