I have found that when I have the submit button/link inside the tab with the upload it will work; but not very well; or you can put onchange="submit()" on the upload control; just make sure you application doesn't want to process it's logic just because the form was submitted; simply have the state saved to your backing bean.

While what I suggested it a possible work around; it will probably be easier to just have it outside the tab. Last night I needed to have my admin section for a site I'm working on, working on a production server. I ended up putting my file upload form outside my tabs.

Also does your upload form have the flaky behavior where you upload and the file is never passed to it's backing value, but if you click the upload button again (without specifying a file) then the file you sent the first time shows up after the second submit?

On Sep 6, 2005, at 4:19 AM, Stefan Schütz wrote:

Hi,

i've some trouble with myFaces Fileupload in the following scenario:

On a site i have a tabbedPane (Tab A and tab B)
Tab A contain some simple form-elements, it works very well.
In Tab B is an fileuploadform, which will not work.

What exactly will not work?
The setter for UploadedFile will never been called and
the submit action also is never been called.
Nevertheless the form will be submitted.

I don't understand this. All formelements on the hole site
do not have the required attribute or a converter, or....

if i remove the tabbedPane so that there is only the fileupload-form,
it will work like a charm. Strange!


Is there something undocumented what i have to know?
Or is it a bug?

Any suggestions?


Thanks, Stefan


Reply via email to