M
Mongoose
Hi All,
A very basic jsCookMenu question . . .
Just trying to navigate to a different .jsp page with the jsCookMenu
but for some reason I can't get it to work properly . . . probably
something basic I'm missing since I'm new to java and Tomahawk . . .
At any rate, in my menu.jsp I have a jsCookMenu within in a form
within a div as shown below:
<h:form>
<div align="center">
<t:jscookMenu layout="hbl" theme="ThemeOffice" styleLocation="css/
MenuStyle.css">
<t:navigationMenuItem id="menu1" itemLabel="Home" action="gohome"></
t:navigationMenuItem>
<t:navigationMenuItem id="menu2" itemLabel="Catalog" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
<t:navigationMenuItem id="menu3" itemLabel="Reference"
action="gohome"></t:navigationMenuItem>
<t:navigationMenuItem id="menu4" itemLabel="Events" action="http://
www.cnn.com"></t:navigationMenuItem>
<t:navigationMenuItem id="menu5" itemLabel="Locations" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
<t:navigationMenuItem id="menu6" itemLabel="About Us"></
t:navigationMenuItem>
<t:navigationMenuItem id="menu7" itemLabel="Job Help" action="http://
www.cnn.com"></t:navigationMenuItem>
<t:navigationMenuItem id="menu8" itemLabel="My Account" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
</t:jscookMenu>
</div>
In my faces-config.xml I have a navigation rule shown below:
<navigation-rule>
<from-view-id>/menu.jsp</from-view-id>
<navigation-case>
<from-outcome>gohome</from-outcome>
<to-view-id>/home.jsp</to-view-id>
</navigation-case>
</navigation-rule>
I thought that this was all I needed to do to navigate from menu.jsp
to home.jsp when the user clicks "Home" on the jsCookMenu. However,
it doesn't seem to work as expected. Can someone straighten me out?
I'm sure it's something simple I'm missing . . .
Thanks!
Andy
A very basic jsCookMenu question . . .
Just trying to navigate to a different .jsp page with the jsCookMenu
but for some reason I can't get it to work properly . . . probably
something basic I'm missing since I'm new to java and Tomahawk . . .
At any rate, in my menu.jsp I have a jsCookMenu within in a form
within a div as shown below:
<h:form>
<div align="center">
<t:jscookMenu layout="hbl" theme="ThemeOffice" styleLocation="css/
MenuStyle.css">
<t:navigationMenuItem id="menu1" itemLabel="Home" action="gohome"></
t:navigationMenuItem>
<t:navigationMenuItem id="menu2" itemLabel="Catalog" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
<t:navigationMenuItem id="menu3" itemLabel="Reference"
action="gohome"></t:navigationMenuItem>
<t:navigationMenuItem id="menu4" itemLabel="Events" action="http://
www.cnn.com"></t:navigationMenuItem>
<t:navigationMenuItem id="menu5" itemLabel="Locations" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
<t:navigationMenuItem id="menu6" itemLabel="About Us"></
t:navigationMenuItem>
<t:navigationMenuItem id="menu7" itemLabel="Job Help" action="http://
www.cnn.com"></t:navigationMenuItem>
<t:navigationMenuItem id="menu8" itemLabel="My Account" action="http://
www.cnn.com/WORLD/"></t:navigationMenuItem>
</t:jscookMenu>
</div>
In my faces-config.xml I have a navigation rule shown below:
<navigation-rule>
<from-view-id>/menu.jsp</from-view-id>
<navigation-case>
<from-outcome>gohome</from-outcome>
<to-view-id>/home.jsp</to-view-id>
</navigation-case>
</navigation-rule>
I thought that this was all I needed to do to navigate from menu.jsp
to home.jsp when the user clicks "Home" on the jsCookMenu. However,
it doesn't seem to work as expected. Can someone straighten me out?
I'm sure it's something simple I'm missing . . .
Thanks!
Andy