如何使用rich:upload上传图片

时间:2013-05-06 12:40:07

标签: jsf richfaces jsf-1.2

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

<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>

0 个答案:

没有答案
相关问题