You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jthurst <ja...@gmail.com> on 2007/07/05 22:59:37 UTC
How to have a struts2 a:div not autoload?
How do I get the following struts2 "a:div" to not automatically do an ajax
request when the page loads. I only want it to happen when a /fooFoo topic
notification occurs from an event in form.
<s:div id="contactList" theme="ajax" href="%{foo_url}"
listenTopics="/fooFoo" formId="fooForm" >
Data will display after you enter data above...
</s:div>
Thanks,
Jason
--
View this message in context: http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to have a struts2 a:div not autoload?
Posted by Musachy Barroso <mu...@gmail.com>.
My bad, that was added on 2.1 :(
https://issues.apache.org/struts/browse/WW-1860
musachy
On 7/6/07, jthurst <ja...@gmail.com> wrote:
>
>
> Thanks for the response. I tried your preload suggest but it says that
> it's
> not supported by the div tag and I don't see a reference to it in the
> docs.
>
> <s:div id="contactList" preload="false" theme="ajax" href="%{fooUrl}"
> listenTopics="/foo" formId="contactForm">
>
> listContacts.jsp(48,0) Attribute preload invalid for tag div according to
> TLD
>
>
>
>
> Musachy Barroso wrote:
> >
> > Set "preload" to false.
> >
> > regards
> > musachy
> >
> > On 7/5/07, jthurst <ja...@gmail.com> wrote:
> >>
> >>
> >> How do I get the following struts2 "a:div" to not automatically do an
> >> ajax
> >> request when the page loads. I only want it to happen when a /fooFoo
> >> topic
> >> notification occurs from an event in form.
> >>
> >> <s:div id="contactList" theme="ajax" href="%{foo_url}"
> >> listenTopics="/fooFoo" formId="fooForm" >
> >> Data will display after you enter data above...
> >> </s:div>
> >>
> >> Thanks,
> >> Jason
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11473267
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
Re: How to have a struts2 a:div not autoload?
Posted by jthurst <ja...@gmail.com>.
Thanks for the response. I tried your preload suggest but it says that it's
not supported by the div tag and I don't see a reference to it in the docs.
<s:div id="contactList" preload="false" theme="ajax" href="%{fooUrl}"
listenTopics="/foo" formId="contactForm">
listContacts.jsp(48,0) Attribute preload invalid for tag div according to
TLD
Musachy Barroso wrote:
>
> Set "preload" to false.
>
> regards
> musachy
>
> On 7/5/07, jthurst <ja...@gmail.com> wrote:
>>
>>
>> How do I get the following struts2 "a:div" to not automatically do an
>> ajax
>> request when the page loads. I only want it to happen when a /fooFoo
>> topic
>> notification occurs from an event in form.
>>
>> <s:div id="contactList" theme="ajax" href="%{foo_url}"
>> listenTopics="/fooFoo" formId="fooForm" >
>> Data will display after you enter data above...
>> </s:div>
>>
>> Thanks,
>> Jason
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>
--
View this message in context: http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11473267
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to have a struts2 a:div not autoload?
Posted by Musachy Barroso <mu...@gmail.com>.
Set "preload" to false.
regards
musachy
On 7/5/07, jthurst <ja...@gmail.com> wrote:
>
>
> How do I get the following struts2 "a:div" to not automatically do an ajax
> request when the page loads. I only want it to happen when a /fooFoo
> topic
> notification occurs from an event in form.
>
> <s:div id="contactList" theme="ajax" href="%{foo_url}"
> listenTopics="/fooFoo" formId="fooForm" >
> Data will display after you enter data above...
> </s:div>
>
> Thanks,
> Jason
>
> --
> View this message in context:
> http://www.nabble.com/How-to-have-a-struts2-a%3Adiv-not-autoload--tf4032259.html#a11454523
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd