Hi Volker, yes, it works with onclick. And it's fast compared with reloading the whole page :-)
Btw: It did not work for panel: Fehler: LOG.debugAjaxComponents is not a function Quelldatei: http://localhost:8080/gena-demo/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Zeile: 579 For panel, there's no call to addAjaxComponent(). Regards Helmut >Hi, > >yes the correct attribute is the onclick. > >You can have a onclick and also action and actionListener attributes, >but if there is no onclick tobago creates a onclick to submit the page >with the clientId of the button as action >(Tobago.submitAction(<clientId>);), >if you set a onclick and your custom javascript submits the page with >the correct action (like in my example) the actions should executed. > >2006/11/20, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> Hello Volker, >> >> I tried this, but I get the error message >> >> "Attribute script invalid for tag button according to TLD" >> >> Must I use the onclick attribute instead? But when I use the >> onclick attribute on buttons, the action and actionListener will >> not be called. The is a general problem with buttons. >> >> I use the current 1.0.9 snapshot. >> >> Regards >> Helmut >> >> >Hi, >> > >> >> Is there a simple >> >> way to use the Tobago Ajax features in a JSP page via Javascript? >> > >> >yes there is. >> > >> >tobago provides javascript functions for easy reloading the ajax >> >capable tobago components. >> > >> >which are currently: sheet, tabgroup, panel, box >> > >> >you can use it like this: >> > Tobago.reloadComponent(clientId, actionId); >> >where >> > clientId: the clientId (html id) of the component to reload >> > actionId: the clientId of a commandComponent or null >> > >> >If you want a tobago command component which triggers the reload e.g. a >> >button: >> > >> ><tc:button action="#{bean.action}" >> > script="Tobago.reloadComponent('<ajaxId>', '@autoId')"/> >> > >> >where <ajaxId> is the clientId of the component to reload. >> >@autoId is replaced by the buttons clientId >> > >> >Regards >> > Volker >>

