I'm using the current nightly build of Tomahawk, but cannot seem to get the JSCook menu working.

Usage:
<h:form id="menuForm">
<t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="styling" id="jscook">
    <t:navigationMenuItem id="nav_1"
            itemLabel="#{msg['search']}">
        <t:navigationMenuItem id="nav_1_1"
                    itemLabel="#{msg['search_customer']}"
                    action=""
        ...
    </t:navigationMenuItem>
</t:jscookMenu>
</h:form>

Results in _javascript_ that points the browser to pages like:
menuForm_jscook_menu:A]search_customer

The generated _javascript_ looks like:
<form id="menuForm" ...>
<script type="text/_javascript_">var menuForm_jscook_menu =
[[null, 'Zoek', null, 'menuForm', null,[null, 'Opzoeken klant', 'menuForm_jscook_menu:A]search_customer', 'menuForm', null], etc...

It seems like there are some square brackets in there that don't belong, essentially I suspect the generated _javascript_ is broken somehow, losing the link with the associated action.
Perhaps even more problematic, method binding in the navigationMenuItem does not even seem to get parsed.
<t:navigationMenuItem id="nav_1_1"
                    itemLabel="#{msg['search_customer']}"
                    action="">
results in _javascript_ containing
menuForm_jscook_menu:A]#{someBean.someAction}
The EL _expression_ is not even interpreted?

This is on an otherwise working project that iis already using tomahawk extensively.

Thanks for any help regarding this issue!

Reply via email to