We've gotten it to work by having the action method write to the output
stream and return null.  This is by far the best solution I've seen yet, but
it is a little unsatisfying from an architectual point of view.  It would be
more satisfying to have a Topic-based solution, but I can't see how to do
that, or if it could possibly work.  The basic problem (with my limited
understanding of Ajax) is that the contents of the div are an s:select tag,
which is executed on the server when the page is first rendered, and I don't
see how the client-side listener can refresh the dynamic contents of that
select tag (no longer an s:select tag on the client side).  In order to do
that, it seems that the s:select tag itself would have to be ajax-enabled. 
Is this correct?  Any insight, Anyone?

- rc



Musachy Barroso wrote:
> 
> You could do it in S2, just like you said you would do it in S1, writing
> to
> the output stream, without requiring a page for it (not that I'm advising
> to
> do so ;) ).
> 
> musachy
> 
> On 5/25/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- Ray Clough <[EMAIL PROTECTED]> wrote:
>> > [Ajaxy stuff]
>>
>> You may want to explore Dojo's listenTopics and
>> notifyTopics; you can define quite a bit of behavior
>> based on a DIV load etc.
>>
>> It's discussed in an S2 context at:
>>
>> http://struts.apache.org/2.x/docs/ajax-tags.html
>>
>> (That page needs reorganizing :/
>>
>> d.
>>
>>
>>
>>
>> ____________________________________________________________________________________Ready
>> for the edge of your seat?
>> Check out tonight's top picks on Yahoo! TV.
>> http://tv.yahoo.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2---AJAX-questions-tf3815167.html#a10808229
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to