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