You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tomáš Bubeník (JIRA)" <de...@myfaces.apache.org> on 2007/06/07 15:27:55 UTC

[jira] Commented: (TOMAHAWK-1013) Cannot use menu: dummyForm.elements.jscook_action has no properties

    [ https://issues.apache.org/jira/browse/TOMAHAWK-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502334 ] 

Tomáš Bubeník commented on TOMAHAWK-1013:
-----------------------------------------

Using t:jscookMenu (but not org.apache.myfaces.custom.navmenu.jscookmenu.HtmlCommandJSCookMenu in UIComponent) can help "I added the line <input type="hidden" id="jscook_action" name="jscook_action"/> to the jsp ...". See Ingmar's notes on http://forum.java.sun.com/thread.jspa?forumID=427&threadID=761310

> Cannot use menu: dummyForm.elements.jscook_action has no properties
> -------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1013
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1013
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: JS Cook Menu
>    Affects Versions: 1.1.5
>            Reporter: Pawel Czerwinski
>
> In previous version JSCookMenu worked fine, but when I upgraded to 1.1.5 the following js error came out:
> dummyForm.elements.jscook_action has no properties
> This is happening in the line: dummyForm.elements['jscook_action'].value = link;
> and I noticed that unlike in the previous version, the tag <input type="hidden" name="jscook_action"> is not being rendered at all. This causes the java scrpit to break and disables menu completely.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.