You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Al...@interactivedata.com on 2006/07/31 17:51:10 UTC

JSCookMenu and linkDummyForm?

Hello All,

I have set up a JSCookMenu to display a Navigation menu but when I click 
on a menu item my navigation is ignored and I am returned to the current 
page. When I view the source I get the following :-

<form id="mainMenuForm" name="mainMenuForm" method="post" 
action="/capgui/mainmenu.faces" 
enctype="application/x-www-form-urlencoded">

<script type="text/javascript"><!--
var mainMenuForm_menu_menu =
[[null, 'Monitoring', 'mainMenuForm_menu_menu:action1', 'linkDummyForm', 
null,[null, 'Main', 'mainMenuForm_menu_menu:mainmenu', 'linkDummyForm', 
null],
[null, 'File Status', 'mainMenuForm_menu_menu:action1_2', 'linkDummyForm', 
null],
[null, 'Timelines', 'mainMenuForm_menu_menu:action1_3', 'linkDummyForm', 
null],
[null, 'Admin Messages', 'mainMenuForm_menu_menu:action1_4', 
'linkDummyForm', null];
//--></script><div id="mainMenuForm_menu_menu">

I have looked at the current example (snapshot 1.1.5) and  when I view the 
source the linkDummyForm is replaced with the current formId (_idJsp0) :-

<form id="_idJsp0" name="_idJsp0" method="post" 
action="/myfaces-example-simple-1.1.5-SNAPSHOT/jscookmenu.jsf" 
enctype="application/x-www-form-urlencoded">

<script type="text/javascript"><!--
var idJsp0__idJsp1_menu =
[[null, 'Home', 
'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};Home:A]go_home', 
'_idJsp0', null],
[null, 'Home', 
'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};go_home:A]go_home', 
'_idJsp0', null],
[null, 'Examples', null, '_idJsp0', null,[null, 'Sample 1', 
'idJsp0__idJsp1_menu:A]go_sample1', '_idJsp0', null],
_cmSplit,,
['<img src="images/myfaces.gif"/>', 'Sample 2', 
'idJsp0__idJsp1_menu:A]go_sample2', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Validations', 
'idJsp0__idJsp1_menu:A]go_validate', '_idJsp0', null],
_cmSplit,['<img src="images/component.gif"/>', 'Components', null, 
'_idJsp0', null,['<img src="images/myfaces.gif"/>', 'Sortable Table', 
'idJsp0__idJsp1_menu:A]go_sortTable', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Selectboxes', 
'idJsp0__idJsp1_menu:A]go_selectbox', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'File upload', 
'idJsp0__idJsp1_menu:A]go_fileupload', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Tabbed Pane', 
'idJsp0__idJsp1_menu:A]go_tabbedPane', '_idJsp0', null],
_cmSplit,['<img src="images/myfaces.gif"/>', 'Calendar', 
'idJsp0__idJsp1_menu:A]go_calendar', '_idJsp0', null],
_cmSplit,['<img src="images/myfaces.gif"/>', 'Popup', 
'idJsp0__idJsp1_menu:A]go_popup', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Date', 
'idJsp0__idJsp1_menu:A]go_date', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Html Editor', 
'idJsp0__idJsp1_menu:A]go_inputHtml', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Tree2', 
'idJsp0__idJsp1_menu:A]go_tree2', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Tree Table', 
'idJsp0__idJsp1_menu:A]go_treeTable', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'DataScroller', 
'idJsp0__idJsp1_menu:A]go_datascroller', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Stylesheet', 
'idJsp0__idJsp1_menu:A]go_css', '_idJsp0', null],
['<img src="images/myfaces.gif"/>', 'Newspaper Table', 
'idJsp0__idJsp1_menu:A]go_newspaperTable', '_idJsp0', null]]],
[null, 'Apache MyFaces Home', 
'idJsp0__idJsp1_menu:A]http://myfaces.apache.org', '_idJsp0', null]];
//--></script><div id="idJsp0__idJsp1_menu"></div>
<script type="text/javascript"><!--
        if(window.cmDraw!=undefined) { cmDraw ('idJsp0__idJsp1_menu', 
idJsp0__idJsp1_menu, 'hbr', cmThemeOffice, 'ThemeOffice');}
//--></script>

Can anyone shed some light on why linkDummyForm is being used instead of 
my formId.

Many Thanks

Alex...


<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
This message (including any files transmitted with it) may contain<br>
confidential and/or proprietary information, is the property of<br>
Interactive Data Corporation and/or its subsidiaries, and is<br>
directed only to the addressee(s). If you are not the designated<br>
recipient or have reason to believe you received this message in<br>
error, please delete this message from your system and notify the<br>
sender immediately.   An unintended recipient's disclosure,<br>
copying, distribution, or use of this message or any attachments is<br>
prohibited and may be unlawful<br>
</STRONG></P></BODY></HTML>

Re: JSCookMenu and linkDummyForm?

Posted by Al...@interactivedata.com.
I'm not using Trinidad just MyFaces and Tomahawk.




"Cosma Colanicchia" <co...@gmail.com> 
31/07/2006 16:55
Please respond to
"MyFaces Discussion" <us...@myfaces.apache.org>


To
"MyFaces Discussion" <us...@myfaces.apache.org>
cc

Subject
Re: JSCookMenu and linkDummyForm?





If you are using Trinidad, you should download the latest sources to
use JSCookMenu.


Cosma

2006/7/31, Alex.Trusler@interactivedata.com 
<Al...@interactivedata.com>:
>
> Hello All,
>
> I have set up a JSCookMenu to display a Navigation menu but when I click 
on
> a menu item my navigation is ignored and I am returned to the current 
page.
> When I view the source I get the following :-
>
> <form id="mainMenuForm" name="mainMenuForm" method="post"
> action="/capgui/mainmenu.faces"
> enctype="application/x-www-form-urlencoded">
>
> <script type="text/javascript"><!--
>  var mainMenuForm_menu_menu =
>  [[null, 'Monitoring', 'mainMenuForm_menu_menu:action1',
> 'linkDummyForm', null,[null, 'Main',
> 'mainMenuForm_menu_menu:mainmenu', 'linkDummyForm', null],
>  [null, 'File Status', 'mainMenuForm_menu_menu:action1_2',
> 'linkDummyForm', null],
>  [null, 'Timelines', 'mainMenuForm_menu_menu:action1_3',
> 'linkDummyForm', null],
>  [null, 'Admin Messages',
> 'mainMenuForm_menu_menu:action1_4', 'linkDummyForm', null];
> //--></script><div id="mainMenuForm_menu_menu">
>
> I have looked at the current example (snapshot 1.1.5) and  when I view 
the
> source the linkDummyForm is replaced with the current formId (_idJsp0) 
:-
>
> <form id="_idJsp0" name="_idJsp0" method="post"
> action="/myfaces-example-simple-1.1.5-SNAPSHOT/jscookmenu.jsf"
> enctype="application/x-www-form-urlencoded">
>
> <script type="text/javascript"><!--
> var idJsp0__idJsp1_menu =
> [[null, 'Home',
> 'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};Home:A]go_home',
> '_idJsp0', null],
> [null, 'Home',
> 
'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};go_home:A]go_home',
> '_idJsp0', null],
> [null, 'Examples', null, '_idJsp0', null,[null, 'Sample 1',
> 'idJsp0__idJsp1_menu:A]go_sample1', '_idJsp0', null],
> _cmSplit,,
> ['<img src="images/myfaces.gif"/>', 'Sample 2',
> 'idJsp0__idJsp1_menu:A]go_sample2', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Validations',
> 'idJsp0__idJsp1_menu:A]go_validate', '_idJsp0', null],
> _cmSplit,['<img src="images/component.gif"/>', 'Components', null,
> '_idJsp0', null,['<img src="images/myfaces.gif"/>', 'Sortable Table',
> 'idJsp0__idJsp1_menu:A]go_sortTable', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Selectboxes',
> 'idJsp0__idJsp1_menu:A]go_selectbox', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'File upload',
> 'idJsp0__idJsp1_menu:A]go_fileupload', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tabbed Pane',
> 'idJsp0__idJsp1_menu:A]go_tabbedPane', '_idJsp0', null],
> _cmSplit,['<img src="images/myfaces.gif"/>', 'Calendar',
> 'idJsp0__idJsp1_menu:A]go_calendar', '_idJsp0', null],
> _cmSplit,['<img src="images/myfaces.gif"/>', 'Popup',
> 'idJsp0__idJsp1_menu:A]go_popup', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Date',
> 'idJsp0__idJsp1_menu:A]go_date', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Html Editor',
> 'idJsp0__idJsp1_menu:A]go_inputHtml', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tree2',
> 'idJsp0__idJsp1_menu:A]go_tree2', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tree Table',
> 'idJsp0__idJsp1_menu:A]go_treeTable', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'DataScroller',
> 'idJsp0__idJsp1_menu:A]go_datascroller', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Stylesheet',
> 'idJsp0__idJsp1_menu:A]go_css', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Newspaper Table',
> 'idJsp0__idJsp1_menu:A]go_newspaperTable', '_idJsp0',
> null]]],
> [null, 'Apache MyFaces Home',
> 'idJsp0__idJsp1_menu:A]http://myfaces.apache.org',
> '_idJsp0', null]];
> //--></script><div id="idJsp0__idJsp1_menu"></div>
> <script type="text/javascript"><!--
>         if(window.cmDraw!=undefined) { cmDraw ('idJsp0__idJsp1_menu',
> idJsp0__idJsp1_menu, 'hbr', cmThemeOffice, 'ThemeOffice');}
> //--></script>
>
> Can anyone shed some light on why linkDummyForm is being used instead of 
my
> formId.
>
> Many Thanks
>
> Alex...
>
>
>
> ________________________________
>
>
>
>
>
>
>  This message (including any files transmitted with it) may contain
>  confidential and/or proprietary information, is the property of
>  Interactive Data Corporation and/or its subsidiaries, and is
>  directed only to the addressee(s). If you are not the designated
>  recipient or have reason to believe you received this message in
>  error, please delete this message from your system and notify the
>  sender immediately. An unintended recipient's disclosure,
>  copying, distribution, or use of this message or any attachments is
>  prohibited and may be unlawful
>

Re: JSCookMenu and linkDummyForm?

Posted by Cosma Colanicchia <co...@gmail.com>.
If you are using Trinidad, you should download the latest sources to
use JSCookMenu.


Cosma

2006/7/31, Alex.Trusler@interactivedata.com <Al...@interactivedata.com>:
>
> Hello All,
>
> I have set up a JSCookMenu to display a Navigation menu but when I click on
> a menu item my navigation is ignored and I am returned to the current page.
> When I view the source I get the following :-
>
> <form id="mainMenuForm" name="mainMenuForm" method="post"
> action="/capgui/mainmenu.faces"
> enctype="application/x-www-form-urlencoded">
>
> <script type="text/javascript"><!--
>  var mainMenuForm_menu_menu =
>  [[null, 'Monitoring', 'mainMenuForm_menu_menu:action1',
> 'linkDummyForm', null,[null, 'Main',
> 'mainMenuForm_menu_menu:mainmenu', 'linkDummyForm', null],
>  [null, 'File Status', 'mainMenuForm_menu_menu:action1_2',
> 'linkDummyForm', null],
>  [null, 'Timelines', 'mainMenuForm_menu_menu:action1_3',
> 'linkDummyForm', null],
>  [null, 'Admin Messages',
> 'mainMenuForm_menu_menu:action1_4', 'linkDummyForm', null];
> //--></script><div id="mainMenuForm_menu_menu">
>
> I have looked at the current example (snapshot 1.1.5) and  when I view the
> source the linkDummyForm is replaced with the current formId (_idJsp0) :-
>
> <form id="_idJsp0" name="_idJsp0" method="post"
> action="/myfaces-example-simple-1.1.5-SNAPSHOT/jscookmenu.jsf"
> enctype="application/x-www-form-urlencoded">
>
> <script type="text/javascript"><!--
> var idJsp0__idJsp1_menu =
> [[null, 'Home',
> 'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};Home:A]go_home',
> '_idJsp0', null],
> [null, 'Home',
> 'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};go_home:A]go_home',
> '_idJsp0', null],
> [null, 'Examples', null, '_idJsp0', null,[null, 'Sample 1',
> 'idJsp0__idJsp1_menu:A]go_sample1', '_idJsp0', null],
> _cmSplit,,
> ['<img src="images/myfaces.gif"/>', 'Sample 2',
> 'idJsp0__idJsp1_menu:A]go_sample2', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Validations',
> 'idJsp0__idJsp1_menu:A]go_validate', '_idJsp0', null],
> _cmSplit,['<img src="images/component.gif"/>', 'Components', null,
> '_idJsp0', null,['<img src="images/myfaces.gif"/>', 'Sortable Table',
> 'idJsp0__idJsp1_menu:A]go_sortTable', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Selectboxes',
> 'idJsp0__idJsp1_menu:A]go_selectbox', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'File upload',
> 'idJsp0__idJsp1_menu:A]go_fileupload', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tabbed Pane',
> 'idJsp0__idJsp1_menu:A]go_tabbedPane', '_idJsp0', null],
> _cmSplit,['<img src="images/myfaces.gif"/>', 'Calendar',
> 'idJsp0__idJsp1_menu:A]go_calendar', '_idJsp0', null],
> _cmSplit,['<img src="images/myfaces.gif"/>', 'Popup',
> 'idJsp0__idJsp1_menu:A]go_popup', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Date',
> 'idJsp0__idJsp1_menu:A]go_date', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Html Editor',
> 'idJsp0__idJsp1_menu:A]go_inputHtml', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tree2',
> 'idJsp0__idJsp1_menu:A]go_tree2', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Tree Table',
> 'idJsp0__idJsp1_menu:A]go_treeTable', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'DataScroller',
> 'idJsp0__idJsp1_menu:A]go_datascroller', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Stylesheet',
> 'idJsp0__idJsp1_menu:A]go_css', '_idJsp0', null],
> ['<img src="images/myfaces.gif"/>', 'Newspaper Table',
> 'idJsp0__idJsp1_menu:A]go_newspaperTable', '_idJsp0',
> null]]],
> [null, 'Apache MyFaces Home',
> 'idJsp0__idJsp1_menu:A]http://myfaces.apache.org',
> '_idJsp0', null]];
> //--></script><div id="idJsp0__idJsp1_menu"></div>
> <script type="text/javascript"><!--
>         if(window.cmDraw!=undefined) { cmDraw ('idJsp0__idJsp1_menu',
> idJsp0__idJsp1_menu, 'hbr', cmThemeOffice, 'ThemeOffice');}
> //--></script>
>
> Can anyone shed some light on why linkDummyForm is being used instead of my
> formId.
>
> Many Thanks
>
> Alex...
>
>
>
> ________________________________
>
>
>
>
>
>
>  This message (including any files transmitted with it) may contain
>  confidential and/or proprietary information, is the property of
>  Interactive Data Corporation and/or its subsidiaries, and is
>  directed only to the addressee(s). If you are not the designated
>  recipient or have reason to believe you received this message in
>  error, please delete this message from your system and notify the
>  sender immediately. An unintended recipient's disclosure,
>  copying, distribution, or use of this message or any attachments is
>  prohibited and may be unlawful
>