1

我上传图片有问题。图片上传正确,但浏览器未显示图片。它仅在刷新页面后显示。

<rich:fileUpload id="upload" 
    addControlLabel="Browse" autoclear="true"
    acceptedTypes="jpg, gif, png, bmp"
    maxFilesQuantity="1"
    fileUploadListener="#{BeanClass.fileUploadListener}" 
    listHeight="110px">
    <a4j:support event="onsizerejected"reRender="upload"/>
    <a4j:support event="onuploadcomplete" reRender="changepictureForm,scriptId" />
</rich:fileUpload>
4

0 回答 0