Hello Volker,
actual it doesnt work in my program really fine. I wright a test action
and connect that. first click, reload the panel. second click change the
page if I dont use the tomcat debugger, with tomcat debugger I reload the
actual page complete BTW. The serious problem is that I get a message from
the tobago debugmode and in some case tomcat message that duplicated ids
happen, BTW I believe that is more this error (
https://issues.apache.org/jira/browse/MYFACES-1550 ).
My environment Tomcat 5.5.17 , MyFaces 1.1.5, Tobago 1.0.11, Facelets
1.1.10.
regards
David
<http://dict.leo.org/ende?lp=ende&p=/gQPU.&search=environment>
1. ReferenceError: createMenuRoot is not defined
2. errorCode: function setupMenuakdb__id1(id, pageId) { var
menuStart = new Date(); var searchId = id + '::popup'; var menubar =
document.getElementById(searchId); if (! menubar) { searchId = id;
menubar = document.getElementById(searchId); } if (menubar) { var
menu = createMenuRoot(searchId); menubar.menu = menu;
menu.setSubitemArrowImage("/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/MenuArrow.gif");
var menu_0 = new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled
tobago-menuBar-item-span-top" href="#" onfocus="tobagoMenuFocus(event)"
onblur="tobagoMenuBlur(event)" onkeydown="tobagoMenuKeyDown(event)"
onkeypress="tobagoMenuKeyPress(event)" >Datei</a>', null);
menu.addMenuItem(menu_0); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Korrektur</a>', "Tobago.submitAction('akdb:_id3', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image" src="/okfis/new.gif" ><a
class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled" href="#"
onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Neue Erstanordnung</a>', "Tobago.submitAction('akdb:_id4', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image" src="/okfis/copy.gif" ><a
class="tobago-menuBar-item-span tobago-menuBar-item-span-disabled" href="#"
onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Neue Erstanordnung mit Kopie</a>', null, true)); menu_0.addMenuItem(new
Tobago.Menu.Item('<img class="tobago-menu-item-image"
src="/okfis/delete.gif" ><a class="tobago-menuBar-item-span
tobago-menuBar-item-span-enabled" href="#" onfocus="tobagoMenuFocus(event)"
onblur="tobagoMenuBlur(event)" onkeydown="tobagoMenuKeyDown(event)"
onkeypress="tobagoMenuKeyPress(event)" >Löschen</a>', "
Tobago.submitAction('akdb:_id6', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<div style="text-align:
center;"><hr class="tobago-menuBar-separator"></div>', null, true, true));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>HÜ-Eintrag</a>', "Tobago.submitAction('akdb:_id8', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Freigabe</a>', "Tobago.submitAction('akdb:_id9', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Sollstellung</a>', "Tobago.submitAction('akdb:_id10', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<div
style="text-align: center;"><hr class="tobago-menuBar-separator"></div>',
null, true, true)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Stornieren HÜ-Eintrag</a>', "Tobago.submitAction('akdb:_id12',
true);", false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Stornieren Freigabe</a>', "Tobago.submitAction('akdb:_id13',
true);", false)); initMenuBar(searchId, pageId); } else { LOG.debug('kein
Element mit id: ' + searchId + ' gefunden!'); } LOG.debug('Menu
Total Time : ' + (new Date().getTime() -
menuStart.getTime()));}setupMenuakdb__id1('akdb:_id1',
'akdb');
3. TypeError: Tobago.Sheet is not a constructor
4. errorCode: new Tobago.Sheet("akdb:_id16", true,
"/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/sheetChecked.gif",
"/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/sheetUnchecked.gif",
"single", null);
5. TypeError: Tobago.TabGroup is not a constructor
6. errorCode: new Tobago.TabGroup( 'akdb:_id35', '0', '2');
7. FacesContext =
[EMAIL PROTECTED]
8. register :
9. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js
10. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
11. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/theme-config.js
12. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/theme-config.js
13. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/script/theme-config.js
14. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/effects.js
15. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/dragdrop.js
16. register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
17. register :
18. ReferenceError: createMenuRoot is not defined
19. errorCode: function setupMenuakdb__id1(id, pageId) { var
menuStart = new Date(); var searchId = id + '::popup'; var menubar =
document.getElementById(searchId); if (! menubar) { searchId = id;
menubar = document.getElementById(searchId); } if (menubar) { var
menu = createMenuRoot(searchId); menubar.menu = menu;
menu.setSubitemArrowImage("/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/MenuArrow.gif");
var menu_0 = new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled
tobago-menuBar-item-span-top" href="#" onfocus="tobagoMenuFocus(event)"
onblur="tobagoMenuBlur(event)" onkeydown="tobagoMenuKeyDown(event)"
onkeypress="tobagoMenuKeyPress(event)" >Datei</a>', null);
menu.addMenuItem(menu_0); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Korrektur</a>', "Tobago.submitAction('akdb:_id3', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image" src="/okfis/new.gif" ><a
class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled" href="#"
onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Neue Erstanordnung</a>', "Tobago.submitAction('akdb:_id4', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image" src="/okfis/copy.gif" ><a
class="tobago-menuBar-item-span tobago-menuBar-item-span-disabled" href="#"
onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Neue Erstanordnung mit Kopie</a>', null, true)); menu_0.addMenuItem(new
Tobago.Menu.Item('<img class="tobago-menu-item-image"
src="/okfis/delete.gif" ><a class="tobago-menuBar-item-span
tobago-menuBar-item-span-enabled" href="#" onfocus="tobagoMenuFocus(event)"
onblur="tobagoMenuBlur(event)" onkeydown="tobagoMenuKeyDown(event)"
onkeypress="tobagoMenuKeyPress(event)" >Löschen</a>', "
Tobago.submitAction('akdb:_id6', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<div style="text-align:
center;"><hr class="tobago-menuBar-separator"></div>', null, true, true));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>HÜ-Eintrag</a>', "Tobago.submitAction('akdb:_id8', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Freigabe</a>', "Tobago.submitAction('akdb:_id9', true);", false));
menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Sollstellung</a>', "Tobago.submitAction('akdb:_id10', true);",
false)); menu_0.addMenuItem(new Tobago.Menu.Item('<div
style="text-align: center;"><hr class="tobago-menuBar-separator"></div>',
null, true, true)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Stornieren HÜ-Eintrag</a>', "Tobago.submitAction('akdb:_id12',
true);", false)); menu_0.addMenuItem(new Tobago.Menu.Item('<img
class="tobago-menu-item-image"
src="/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif"
><a class="tobago-menuBar-item-span tobago-menuBar-item-span-enabled"
href="#" onfocus="tobagoMenuFocus(event)" onblur="tobagoMenuBlur(event)"
onkeydown="tobagoMenuKeyDown(event)" onkeypress="tobagoMenuKeyPress(event)"
>Stornieren Freigabe</a>', "Tobago.submitAction('akdb:_id13',
true);", false)); initMenuBar(searchId, pageId); } else { LOG.debug('kein
Element mit id: ' + searchId + ' gefunden!'); } LOG.debug('Menu
Total Time : ' + (new Date().getTime() -
menuStart.getTime()));}setupMenuakdb__id1('akdb:_id1',
'akdb');
20. TypeError: Tobago.Sheet is not a constructor
21. errorCode: new Tobago.Sheet("akdb:_id16", true,
"/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/sheetChecked.gif",
"/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/sheetUnchecked.gif",
"single", null);
22. TypeError: Tobago.TabGroup is not a constructor
23. errorCode: new Tobago.TabGroup( 'akdb:_id35', '0', '2');
24. FacesContext =
[EMAIL PROTECTED]
25. startTbgJs-TbgHeadStart: 766
26. startBody-startTbgJs: 797
27. startTbgJs:1181715440564
28. startBody :1181715441361
29. parse tobago.js 0
30. parse body 171
31. between body and onload 1188
32. execute onload 0
33. execute appOnload 0
34. bis appOnload 0
35. bis scriptLoaders 62
36. time scriptLoaders 47
37. bis nach onload 2156
38. total 2281
actionmethod code:
private int zufall = 0;
public String actionZufall() {
if(zufall++ % 2 == 0) {
return null;
}
else {
return "suche";
}
}
faces-config.xml:
<navigation-rule>
<from-view-id>/eingabe.xhtml</from-view-id>
...
<navigation-case>
<from-outcome>suche</from-outcome>
<to-view-id>/suche.xhtml</to-view-id>
</navigation-case>
...
</navigation-rule>
facelet eingabe.xhtml:
<tc:button action="#{ eingabe.actionZufall}" label="Zufall">
<tc:attribute name="renderedPartially"
value="akdb:panelid"/>
</tc:button>
2007/6/12, Volker Weber <[EMAIL PROTECTED]>:
>
> Hi David,
>
> yes, since 1.0.11.
>
> if the action method returns a outcome != null a full page reload is
> done.
>
>
> Regards,
> Volker
>
> 2007/6/12, David Steinkopff < [EMAIL PROTECTED]>:
> > Hi,
> >
> > its possible to start a page change with navigationcase within a ajax
> > request?
> >
> > regards
> > David
> >
>