-
1. Re: rich:fileupload upload button is disabled sometimes when page rendering
lmk May 4, 2010 5:19 AM (in response to babazs)a snippet code will be helpful..
-
2. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 4, 2010 5:24 AM (in response to lmk)I use this component with a simple way:
<h:form id="myForm">
<rich:fileUpload
disabled="false"
addControlLabel="#{messages['bt.lb']}"
listWidth="300"
listHeight="200"
fileUploadListener="#{imageUploaderBean.imageUploaderMethod()}"
id="uploader"
maxFilesQuantity="100"
immediateUpload="true"
acceptedTypes="jpg,jpeg,gif,png"
autoclear="true"
allowFlash="true"
>
<a4j:support event="onuploadcomplete" limitToList="true" reRender="myForm"/>
<f:facet name="label">
<h:outputText value="text" />
</f:facet>
</rich:fileUpload></h:form>
-
3. Re: rich:fileupload upload button is disabled sometimes when page rendering
ilya_shaikovsky May 4, 2010 10:37 AM (in response to babazs)flash plugin version could be the reason if you opening from different PC's
-
4. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 5, 2010 1:42 AM (in response to ilya_shaikovsky)thanks.
What does it mean: ' different PC's ' ?
-
5. Re: rich:fileupload upload button is disabled sometimes when page rendering
ilya_shaikovsky May 5, 2010 5:20 AM (in response to babazs)I believe that under "sometimes" you mean in some concrete browsers or at some client workstations only. So seems the problem with particular Flash plugin versions there.
-
6. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 6, 2010 10:41 AM (in response to ilya_shaikovsky)thanks Ilya.
My enironment is: Windows Vista, Adobe flash 10,Firefox 3.6.3 latest.
I think it is an often used environment.
-
7. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 16, 2010 3:04 AM (in response to ilya_shaikovsky)I think this not a flash plugin error, because I never meet this error on the richfaces rich:fileupload demo page.
The only different from the demo page, is that I use a custom richfaces fileupload css
-
8. Re: rich:fileupload upload button is disabled sometimes when page rendering
ilya_shaikovsky May 17, 2010 5:58 AM (in response to babazs)do you able to reproduce that without flash enabled?
-
9. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 17, 2010 12:04 PM (in response to ilya_shaikovsky)I went through to the richfaces document, and I found that maxFilesQuantity="1" , causes the problem, because It disable the button after fileupload.
But If I had multiple rich:fileUploader with maxFilesQuantity="100", and I upload 1 picture with the first rich:fileupload component, the second will be disabled, If I not reRender the second rich:fileupload.
-
10. Re: rich:fileupload upload button is disabled sometimes when page rendering
babazs May 17, 2010 12:35 PM (in response to ilya_shaikovsky)I tested many times and I think <a4j:support event="onuploadcomplete" limitToList="true" reRender="uploader"/>, solved the problem.
The only bug with this, that when onuploadcomplete is occurred for 0.5sec the rich:fileupload buton will be disabled!!!(always) than normal.
So How can I avoid this effect If would like to use onuploadcomplete event to reRender?
thanks!