Have Primefaces file-upload component with auto="true" param:
...
<p:fileUpload fileUploadListener="#{uploadFileBean.upload}" mode="advanced" auto="true"/>
...
When auto="true",that after image been uploaded,preview of image disappeared.
Is it possible,that uploaded images(files) preview remained in the list,like it works,when auto="false".
Three steps you should perform:
1. add container for images preview with particular id,let it be
info2. add parameter
update="info"intop:fileUploadtag3. ovverride styles of container that is standardly displayed by
Primefacesengine withCSSstyles likedisplay:none,in particular, this one: