|
List Info
Thread: JSCookMenu and linkDummyForm?
|
|
| JSCookMenu and linkDummyForm? |

|
2006-07-31 15:51:10 |
|
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
|
| JSCookMenu and linkDummyForm? |

|
2006-07-31 15:55:42 |
If you are using Trinidad, you should download the latest
sources to
use JSCookMenu.
Cosma
2006/7/31, Alex.Trusler interactivedata.com <Alex.Trusler 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/jscookm
enu.jsf"
>
enctype="application/x-www-form-urlencoded">
>
> <script
type="text/javascript"><!--
> var idJsp0__idJsp1_menu =
> [[null, 'Home',
>
'idJsp0__idJsp1_menu:L]#{navigationMenu.actionListener};Hom
e: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
a>',
> '_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
>
|
|
| JSCookMenu and linkDummyForm? |

|
2006-07-31 16:00:49 |
|
I'm not using Trinidad just MyFaces
and Tomahawk.
"Cosma Colanicchia"
<cosmacol gmail.com>
31/07/2006 16:55
Please respond to
"MyFaces Discussion" <users myfaces.apache.org> |
|
|
To
| "MyFaces Discussion" <users 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 <Alex.Trusler 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 br>
>
> <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)
br>
>
> <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', | |