-
1. Re: rich:fileUpload - cancel upload from listener method and
ilya_shaikovsky Oct 12, 2009 5:04 AM (in response to mail)Yes, as the FU component sends a request per file and FacesMessage lives only for one request - them will be lost after next one and you will not be able to show them onuploadcomplete. Try to store them on some bean session or conversation scoped as a workaround and show after upload complete. The validation mechanism improvements for FU already planned in jira.
-
2. Re: rich:fileUpload - cancel upload from listener method and
mail Oct 12, 2009 5:48 AM (in response to mail)Thanks for the prompt reply!
I understand the problem.
What about using validator attribute? I tried (by registering validator using Seam annotations) and it doesn't even get called. I also found a JIRA which says this.
https://jira.jboss.com/jira/browse/RF-7625
Also some more links that say the same:
http://lists.jboss.org/pipermail/richfaces-issues/2008-June/019943.html
Is there a way to call a validator?
Thanks again!
Regards
Tathagat[/url] -
3. Re: rich:fileUpload - cancel upload from listener method and
ilya_shaikovsky Oct 12, 2009 6:35 AM (in response to mail)currently validator will not helps you as messages will be lost in any way. So try to workaround it by storing messages manually.
-
4. Re: rich:fileUpload - cancel upload from listener method and
mail Oct 12, 2009 10:55 AM (in response to mail)Alright. Thanks! Storing manually works fine.