This content has been marked as final.
Show 3 replies
-
1. Re: FileUpload bean and scope
ilya_shaikovsky Jul 31, 2009 4:33 AM (in response to bennyboy)you could keep the bean with listener in request scope. Just outject the data uploaded from listener to store it.
-
2. Re: FileUpload bean and scope
bennyboy Jul 31, 2009 5:11 AM (in response to bennyboy)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.
thanks. -
3. Re: FileUpload bean and scope
ilya_shaikovsky Jul 31, 2009 5:49 AM (in response to bennyboy)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.