You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rafael Hancke (JIRA)" <de...@myfaces.apache.org> on 2007/11/13 22:36:43 UTC

[jira] Created: (TOMAHAWK-1148) Action defined in navigationMenuItem doesn't work with tomahawk-sandbox

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.


Re: [jira] Created: (TOMAHAWK-1148) Action defined in navigationMenuItem doesn't work with tomahawk-sandbox

Posted by kace <me...@hotmail.com>.
I noticed the exact same problem today after I added the sandbox dependency
to my project.  Using tomahawk 1.1.6; myfaces 2.0; tomahawk-sandbox 1.1.6.

..kace

My Faces - Dev mailing list wrote:
> 
> 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.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28TOMAHAWK-1148%29-Action-defined-in-navigationMenuItem-doesn%27t-work-with-tomahawk-sandbox-tf4800775.html#a13747247
Sent from the My Faces - Dev mailing list archive at Nabble.com.


[jira] Commented: (TOMAHAWK-1148) Action defined in navigationMenuItem doesn't work with tomahawk-sandbox

Posted by "Suraj Shah (JIRA)" <de...@myfaces.apache.org>.
    [ 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.