--- Ian Roughley <[EMAIL PROTECTED]> wrote:
> You could try triggering an event topic on the
> result page of the form submission, then listening 
> for that topic in the s:div ajax tag and reload 
> the list of files.

I'm sorry to be dense, but how would that actually
work? Once I return a result from the form submission
aren't I moving off the page? Or are you suggesting I
can upload with an Ajax <s:form.../>?

(Hmm, I guess I can; I thought I had tried that
earlier and it had failed, but that was before I put
that ActionContextCleanUp filter in which I still
think may be necessary for reliable file upload.)

<s:form action="dynaList!addFile" method="post" 
        enctype="multipart/form-data" theme="ajax">
  <s:file name="newFile" label="Add File"/>
  <s:textfield name="newCaption" label="Caption"/>
  <s:submit targets="fileListDiv"/>
</s:form>

<s:url action="dynaFileAction" id="fileListUrl"/>
<s:div id="fileListDiv" 
       href="%{fileListUrl}" 
       theme="ajax" 
       executeScripts="true">
  Loading...
</s:div>

This is actually "working" except that the fileListDiv
updates with:

[object HTMLDocument]

which is... close-ish :/

I suspect either way I'm close, but I need another
hint.

Thanks!

d.



 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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

Reply via email to