Hi Helmut,
it is always the complete content of the page submitted,
but validation, modelUpdate and reRendering applies only
to the reloaded component and children.
Regards,
Volker
2007/1/24, H. Swaczinna <[EMAIL PROTECTED]>:
No, this is not the case. Values entered outside the ajax reloaded
piece are not validated and written to the backing bean. For example
when I open a popup with the rendered partially attribute or switch
between tabs with switchType="reloadTab". This is what I expect
Tobago should do. So please don't change...
Regards
Helmut
>It is always the whole page submitted, even if the ajax request just
>updates a small piece.
>
>The ajax request sends the complete serialized html form to the server.
>
>Regards,
> Volker
>
>2007/1/24, H. Swaczinna <[EMAIL PROTECTED]>:
>> Hi Volker!
>>
>> >The enctype="multipart/form-data" is missing on html form tag if the
>> >fileInput was not on the initally page.
>>
>> No, that's ok. The enctype="multipart/form-data" is not missing.
>> The fileupload works for example on a tab, which is loaded by Ajax.
>>
>> >Please use a nonAjax popup in the meantime.
>>
>> Hm, I thought nonAjax popups aren't supportet any more?
>>
>> >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.
>>
>> Ok, this works. Even with an Ajax popup. The renderedPartially on the
>> save button is the problem. But it would be nice, if file upload
>> will work with renderedPartially. Without, the whole page is submitted,
>> not only the file upload.
>>
>> >The renderedPartially attribute on a button with popupClose=immediate
>> >has no effect.
>>
>> Thanks
>>
>> Regards
>> Helmut
>>
>> >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
>> >>
>>