我在上传图片时遇到问题。图像正确上传,但浏览器未显示图像。它仅在刷新页面后显示。
<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>