Hello,
any idea how could solve this problem? this problem is troublesome actual.
regards
David
2007/6/13, David Steinkopff < [EMAIL PROTECTED]>:
> 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
>
>
>
>
> ReferenceError: createMenuRoot is not defined
> 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');
> TypeError: Tobago.Sheet is not a constructor
> 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);
> TypeError: Tobago.TabGroup is not a constructor
> errorCode: new Tobago.TabGroup( 'akdb:_id35', '0', '2');
> FacesContext =
[EMAIL PROTECTED]
> register :
> register :
http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/theme-config.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/theme-config.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/speyside/standard/script/theme-config.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/effects.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/dragdrop.js
> register
:http://localhost:8084/okfis/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
> register :
> ReferenceError: createMenuRoot is not defined
> 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');
> TypeError: Tobago.Sheet is not a constructor
> 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);
> TypeError: Tobago.TabGroup is not a constructor
> errorCode: new Tobago.TabGroup( 'akdb:_id35', '0', '2');
> FacesContext =
[EMAIL PROTECTED]
> startTbgJs-TbgHeadStart: 766
> startBody-startTbgJs: 797
> startTbgJs:1181715440564
> startBody :1181715441361
> parse tobago.js 0
> parse body 171
> between body and onload 1188
> execute onload 0
> execute appOnload 0
> bis appOnload 0
> bis scriptLoaders 62
> time scriptLoaders 47
> bis nach onload 2156
> 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
> > >
> >
>
>