I think in addition to update="false" you should set the frequency to
a very hight value
e.g. 10 minutes (600000) or more (depends on your application design).
Otherwise the client will request a update every 5 seconds with a
response of 'not modified' by the server.

2006/11/22, Bernd Bohmann <[EMAIL PROTECTED]>:
Hello Helmut,

the ajax stuff is only included if a reload facet is present.
Maybe i will change it.

You can enforce it with

  <f:facet name="reload">
         <tc:reload frequency="5000" update="false" />
  </f:facet>

Regards

Bernd




[EMAIL PROTECTED] wrote:
> 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
>

Reply via email to