You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Tobias Kühne <to...@digide.net> on 2007/10/30 11:14:34 UTC

Problem with JSCookMenu and it's actions

Hello all,

I'm trying to use the jscookmenu component. The menu is diplayed 
correctly, but the actions belonging to the navigationMenuItems aren't 
working. All I got when clicking on an item is this:

HTTP Status 404 - /easywords/idJsp0_navmenu_menu:A%5Dsuccess

type Status report

message /easywords/idJsp0_navmenu_menu:A%5Dsuccess

description The requested resource 
(/easywords/idJsp0_navmenu_menu:A%5Dsuccess) is not available.

This is a part of the source code of the page:

<t:jscookMenu layout="hbr" theme="ThemeBlue" id="navmenu" 
styleLocation="css" javascriptLocation="css">
	
	<t:navigationMenuItem id="nav_0_0" itemLabel="#{msg.menu_home}"
		action="success" />
...

And the source code of the rendered page looks like that:

<script type="text/javascript"><!--
var idJsp0_navmenu_menu =
[['<img src="images/myfaces.gif"/>', 'Home', 
'idJsp0_navmenu_menu:A]success', '_idJsp0', null],
...

I'm using myfaces and tomahawk in version 1.1.6.

Any ideas on that issue?

Thanks,
  Tobias.

-- 
Tobias Kühne
IT Software GmbH & Data Security Elbe KG       Tel.: +49 (391) 509609-55
Bahnhofstr. 18, D-39104 Magdeburg              Fax : +49 (391) 509609-56
Geschäftsführer: Jens Henning             Amtsgericht Stendal, HRA 22588

Re: Problem with JSCookMenu and it's actions

Posted by Tobias Kühne <to...@digide.net>.
Hi Gerald

> why do you have specified the javascript location? Maybe the paths are wrong.

I changed the location, because I created an own theme for the menu.
The paths were right, but there was a file called "MyFacesHack.js" 
missing...
It works now, when I use one of the default themes...

Tobias.

-- 
Tobias Kühne
IT Software GmbH & Data Security Elbe KG       Tel.: +49 (391) 509609-55
Bahnhofstr. 18, D-39104 Magdeburg              Fax : +49 (391) 509609-56
Geschäftsführer: Jens Henning             Amtsgericht Stendal, HRA 22588


Re: Problem with JSCookMenu and it's actions

Posted by Gerald Müllan <ge...@gmail.com>.
Hi,

why do you have specified the javascript location? Maybe the paths are wrong.

cheers,

Gerald

On 10/30/07, Tobias Kühne <to...@digide.net> wrote:
> Hello all,
>
> I'm trying to use the jscookmenu component. The menu is diplayed
> correctly, but the actions belonging to the navigationMenuItems aren't
> working. All I got when clicking on an item is this:
>
> HTTP Status 404 - /easywords/idJsp0_navmenu_menu:A%5Dsuccess
>
> type Status report
>
> message /easywords/idJsp0_navmenu_menu:A%5Dsuccess
>
> description The requested resource
> (/easywords/idJsp0_navmenu_menu:A%5Dsuccess) is not available.
>
> This is a part of the source code of the page:
>
> <t:jscookMenu layout="hbr" theme="ThemeBlue" id="navmenu"
> styleLocation="css" javascriptLocation="css">
>
>         <t:navigationMenuItem id="nav_0_0" itemLabel="#{msg.menu_home}"
>                 action="success" />
> ...
>
> And the source code of the rendered page looks like that:
>
> <script type="text/javascript"><!--
> var idJsp0_navmenu_menu =
> [['<img src="images/myfaces.gif"/>', 'Home',
> 'idJsp0_navmenu_menu:A]success', '_idJsp0', null],
> ...
>
> I'm using myfaces and tomahawk in version 1.1.6.
>
> Any ideas on that issue?
>
> Thanks,
>   Tobias.
>
> --
> Tobias Kühne
> IT Software GmbH & Data Security Elbe KG       Tel.: +49 (391) 509609-55
> Bahnhofstr. 18, D-39104 Magdeburg              Fax : +49 (391) 509609-56
> Geschäftsführer: Jens Henning             Amtsgericht Stendal, HRA 22588
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces