Hi Helmut,

please add a jira issue for this.

The enctype="multipart/form-data" is missing on html form tag if the
fileInput was not on the initally page.

Please use a nonAjax popup in the meantime.

Another issue with your code: I don't think that it is possible to
upload a file by ajax, you should remove the renderedPartially
attribute from the save button.

The renderedPartially attribute on a button with popupClose=immediate
has no effect.

Regards,
 Volker

2007/1/24, H. Swaczinna <[EMAIL PROTECTED]>:
Hello,

I want want to do a fileupload in a popup. But I get this error message:

2007-01-24 12:01:27 http-8080-Processor25 ERROR - 
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.FileRenderer:90 - 
Can't process multipart/form-data without TobagoRequest. Please check the web.xml and 
define a TobagoMultipartFormdataFilter. See documentation for <tc:file>

The fileupload works, when it is on the page.

This is the popup:

        <tc:button id="anlagenInsertButton"
          image="image/insert.gif">
          <tc:attribute name="renderedPartially" value="uploadPopup"/>
          <f:facet name="popup">
            <tc:popup id="uploadPopup" width="600" height="200">
              <tc:box label="Neue Anlage">
                <f:facet name="layout">
                  <tc:gridLayout rows="*;fixed" columns="*;*;*"/>
                </f:facet>
                <tc:cell spanX="3">
                  <tc:file id="dateiname"
                    value="#{anlagenController.file}"/>
                </tc:cell>
                <tc:cell/>
                <tc:button id="saveButton"
                  label="#{mainBundle.button_label_save}">
                  <tc:attribute name="popupClose" value="afterSubmit"/>
                  <tc:attribute name="renderedPartially" 
value=":mainPage:detailView:anlagenView:panel"/>
                </tc:button>
                <tc:button id="cancelButton"
                  label="#{mainBundle.button_label_cancel}">
                  <tc:attribute name="popupClose" value="immediate"/>
                  <tc:attribute name="renderedPartially" value="uploadPopup"/>
                </tc:button>
              </tc:box>
            </tc:popup>
          </f:facet>
        </tc:button>


Regards
Helmut

Reply via email to