Came across this today -- For facelets and JSF RI 1.2, you have to
manually add the following to your form in order for an action to be
triggered by a navigationMenuItem enclosed in a jscookMenu component.

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

Does anyone know if this is fixed in the latest trunk?   It's broken
in the MyFaces 1.1.4 core release + my Tomahawk 1.1.4 snapshot from
Aug 24, 2006.

Maybe a JSF 1.2 or facelets user could test this for me (you don't
need to define the backing bean -- if you don't get an error, it's
still broke).

<h:form id="form">
        
        <t:jscookMenu layout="hbr" theme="ThemeOffice" 
styleLocation="css/jscookmenu">
                <t:navigationMenuItem id="nav_2" itemLabel="Example 2">
                        <t:navigationMenuItem id="nav_2_1"
                                        itemLabel="Action A" 
action="#{mybean.someActionA}" />
                        <t:navigationMenuItem id="nav_2_2"
                                        itemLabel="Action B" 
action="#{mybean.someActionB}" />
                </t:navigationMenuItem>
        </t:jscookMenu>
</h:form>

And the fix to test is to add in the following in the form.

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

Reply via email to