struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: <s:div> ajax problem
Date Thu, 06 Sep 2007 13:31:38 GMT
The topic is published before and after the request. There is a
parameter to the topic that will be set to "before", "load" or "error"

musachy

On 8/19/07, Jeromy Evans <jeromy.evans@blueskyminds.com.au> wrote:
> ptriller wrote:
> > i am using an
> >
> > <s:div theme="ajax" id="myDiv" notifyTopics="myTopic" href="someUrl">
> > </s:div>
> >
> > and I have some JavaScript Code that alters the links in the div.
> >
> > but when I get notified by the div tag through , the new content of the div
> > has not yet
> > been set, so I can't do that.
> >
>
> Hi Peter,
>
> Apologies I can't give you can complete answer, but in Struts2.0, you're
> right the notifyTopics event is published before the content is loaded.
>
> If you can use Struts 2.1 you may be able to use the afterNotifyTopics
> attribute.  Even though 2.1 isn't released yet, I found its ajax
> features are less 'experimental' than 2.0.x
>
> If not, as the struts div is a dojo widget extending ContentPane I
> suppose you should be able to use dojo directly to connect to an event
> from the widget after its content is loaded.
> I haven't tried it, but it's partially described at
> http://dojotoolkit.org/book/dojo-book-0-4/part-4-more-widgets/advanced-contentpane-usage
>
> regards,
>  Jeromy Evans
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message