you could keep the bean with listener in request scope. Just outject the data uploaded from listener to store it.
I don't get it, can you please explain a bit more?
If i put the bean with the fileUploadListener as a request bean it's not working fine , the a4j:mediaOutput can't display images preview (i'm trying to do the same thing as shown in the live demo), as the fileList is always null (bean is created each time i upload something).
With a session scope, it's working perfectly.
yes, request scoped bean is recreated on every request. Thats why you should store the uploaded files in some session scoped bean, db or something else from listener.