"As a workaround for pre 2.1 version, cssStyle="display:none" can be set on the tabs that should not be preloaded "

But if I do it, my "stuff" is  not shown, is it?

<s:div id="treeAndSelector" theme="ajax" href="${refreshTreeUrl}"
        cssStyle="display:none" listenTopics="/refreshTree" 
executeScripts="true">

        STUFF

</s:div>





Musachy Barroso escribió:
Ooops...fixed on 2.1:

https://issues.apache.org/struts/browse/WW-1860

musachy

On 9/26/07, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote:
Hi Musachy!

Thakns for your answer.

I´m using struts 2.09 and at this url:
http://struts.apache.org/2.0.9/docs/ajax-tags.html
I don´t see any "preload" attribute for the s:div tag.

Would you mind giving me a bit more information about that, please? Or
telling me where to search.

Thank you.


Musachy Barroso escribió:
autostart is to be used with a timer (when you set updateFreq to some
value). To prevent the div from loading when after the page is loaded
use "preload".

musachy

On 9/26/07, Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote:

Hi everybody!

I have the following code:

<s:url id="refreshTreeUrl" action="RefreshTree"/>
<s:div id="treeAndSelector" theme="ajax" href="${refreshTreeUrl}"
autoStart="false"
            listenTopics="/refreshTree" executeScripts="true">

stuff

</s:div>


Why when the page first loads, action "RefreshTree" is invoked??


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to