You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jason Wyatt <jw...@itree.com.au> on 2007/12/05 01:27:35 UTC

[S2] File upload in a tabbedpanel?

I'm trying to implement a file upload tab in an ajax-themed tabbed panel,
using the <s:file> tag.

The file uploading works OK if I view the action directly instead of inside
a tabbedpanel.

However, if I view the file upload page inside an ajax tabbedpanel and try
submitting, with or without a file attached, the relevant action doesn't
seem to get hit anymore, and the enigmatic message "undefined" is displayed
in the tab, with nothing else shown. 

It also appears the interceptors are not being hit.

I've pored over the Nabble archives but haven't been able to find a solution
to this. Has anyone overcome this problem?

Thanks,

Jason


-----
Falun Dafa  Truth - Compassion - Forbearance

A mind & body practice under persecution in China

http://www.faluninfo.net




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


Re: [S2] File upload in a tabbedpanel?

Posted by Pablo Vázquez Blázquez <pv...@denodo.com>.
I have the same problem as you have. Have you already found any solution 
to this?

Thanks.

Jason Wyatt escribió:
> I'm trying to implement a file upload tab in an ajax-themed tabbed panel,
> using the <s:file> tag.
>
> The file uploading works OK if I view the action directly instead of inside
> a tabbedpanel.
>
> However, if I view the file upload page inside an ajax tabbedpanel and try
> submitting, with or without a file attached, the relevant action doesn't
> seem to get hit anymore, and the enigmatic message "undefined" is displayed
> in the tab, with nothing else shown. 
>
> It also appears the interceptors are not being hit.
>
> I've pored over the Nabble archives but haven't been able to find a solution
> to this. Has anyone overcome this problem?
>
> Thanks,
>
> Jason
>
>
> -----
> Falun Dafa  Truth - Compassion - Forbearance
>
> A mind & body practice under persecution in China
>
> http://www.faluninfo.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   


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


Re: [S2] File upload in a tabbedpanel?

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Jason Wyatt wrote:
> I'm trying to implement a file upload tab in an ajax-themed tabbed panel,
> using the <s:file> tag.
>
> The file uploading works OK if I view the action directly instead of inside
> a tabbedpanel.
>
> However, if I view the file upload page inside an ajax tabbedpanel and try
> submitting, with or without a file attached, the relevant action doesn't
> seem to get hit anymore, and the enigmatic message "undefined" is displayed
> in the tab, with nothing else shown. 
>
> It also appears the interceptors are not being hit.
>
> I've pored over the Nabble archives but haven't been able to find a solution
> to this. Has anyone overcome this problem?
>
> Thanks,
>
> Jason
>
>   
Hi Jason,
My guess is that the s:form/s:submit is accidentally inheriting the ajax 
theme when it's inside the tabbed panel/on that page and thus performing 
an XHR post without the multipart.  Did you want to use XHR?  If not, 
try placing a theme=simple explicitly on your form/form's submit button 
to see if that fixes it (or at least isolates it).   I haven't tried a 
multipart XHR via dojo but it must be also possible.

regards,
 Jeromy Evans


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