Hi, I am using fileupload in my application along with preview in a data table like this,
<h:column>
<a4j:outputPanel>
<h:form prependId="false">
<rich:fileUpload ajaxSingle="true" required="true" id="uploadComp" maxFilesQuantity="1" autoclear="true" fileUploadListener="#{assetUpload.filelistener}">
<a4j:support event="onuploadcomplete" reRender="thumbnailpanel"/>
</rich:fileUpload>
</h:form>
</a4j:outputPanel>
</h:column>
<h:column>
<a4j:outputPanel id="thumbnailpanel">
<a4j:mediaOutput element="img"cacheable="false" createContent="#{mediaBean.paint}" value="#{assetUpload.filesMap[assetUpload.bookings[0].id][k]}" mimeType="image/jpeg" styleClass="pic-normal" />
</a4j:outputPanel>
</h:column>
I want to render the "thumbnailpanel" outputpanel when an image file is uploaded. But how to render the "thumbnailpanel" panel when an image file is uploaded ??? but when i give reRender="thumbnailpanel" it doesnt work. Can anyone please help....
I cant use the outputpanel and fileupload in the same form, as i cant use <h:form> across multiple <h:column>. Help plzzzzzzzz
file upload has no reRender. check the demosite. our thumbnail panel updated via a4j:support.