[ https://issues.apache.org/jira/browse/TOMAHAWK-1148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562115#action_12562115 ]
Suraj Shah commented on TOMAHAWK-1148: -------------------------------------- I have the same issue. The only way that i have been able to achieve something similar is to do as follows: <f:verbatim escape="true"> <script> function go_page1(){ document.location = '#{backing_bean.baseUrl}/page1.jspx'; } </script> </f:verbatim> <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="skins/jscookmenu"> <t:navigationMenuItem id="aaa" itemLabel="Page 1" action="javascript:go_page1();"/> </t:jscookMenu> baseUrl provides the context path to the page. Of course, you wont be able to execute actions in the backing bean with this solution. > Action defined in navigationMenuItem doesn't work with tomahawk-sandbox > ----------------------------------------------------------------------- > > Key: TOMAHAWK-1148 > URL: https://issues.apache.org/jira/browse/TOMAHAWK-1148 > Project: MyFaces Tomahawk > Issue Type: Bug > Components: JS Cook Menu, NavigationMenuItem > Affects Versions: 1.1.6 > Environment: Software platform > Reporter: Rafael Hancke > Priority: Critical > > Using tomahawk-sandbox-examples-1.1.6, downloaded from > http://repo1.maven.org/maven2/org/apache/myfaces/tomahawk/tomahawk-sandbox-examples/1.1.6/, > I've been tried to use jscookmenu adding the following lines: > == > 1) In home.jsp, between <h:form> and <h:panelGrid> > <div> > <input type="hidden" name="jscook_action" /> > <t:jscookMenu layout="hbr" theme="ThemeOffice"> > <t:navigationMenuItem itemLabel="Picklist" action="picklistView" /> > </t:jscookMenu> > </div> > 2) In examples-config.xml > <navigation-rule> > <navigation-case> > <from-outcome>picklistView</from-outcome> > <to-view-id>/picklist.jsp</to-view-id> > <redirect /> > </navigation-case> > </navigation-rule> > == > After apply this changes in a new war file and running it in an application > server, if I click in the Picklist option that was renderized, nothing > happens. It seems that the navigation rule defined doesn't have effect. > I try the same test using tomahawk-sandbox-examples-1.1.7-SNAPSHOT, but the > same problem happens. > I'd like to use sandbox because there are lots of useful components for the > application that I'm developing, where tomahawk doesnt have them. And I'd > like to know if you can help me with the bug/problem that I've detailed above. > Best regards > Rafael Hancke -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.