-
1. Re: rich:fileUpload problems
jobb May 21, 2008 4:20 AM (in response to jobb)I forgot to mention version of RF I have used : 3.2.0.SR1
And the code example of modalPanel with fileUpload :<rich:modalPanel id="mpm" width="500" height="300"> <f:facet name="header"><h:outputText value="Modal Panel" /></f:facet> <f:facet name="controls"> <h:graphicImage value="/pictures/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mpm')" /> </f:facet> <rich:fileUpload fileUploadListener="#{testMBean.fileUploaded}" disabled="false" addControlLabel="Legg til fil..." clearAllControlLabel="Ta bort alle" clearControlLabel="Ta bort" cancelEntryControlLabel="Ta bort" stopEntryControlLabel="Stoppe opplasting" stopControlLabel="Stoppe opplasting" uploadControlLabel="Last opp fil" listWidth="480" listHeight="230" onuploadcomplete="this.disabled=false" immediateUpload="false" autoclear="false"> <f:facet name="label"> <h:outputText value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" /> </f:facet> </rich:fileUpload> </rich:modalPanel>
-
2. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 5:12 AM (in response to jobb)At the first: fileUpload has 'maxFilesQuantity' attribute that defines the count of files that can be uploaded before component becomes disabled.
The default value for this attribute is one.
About listeners problems: please use 3.2.1 version. There were many issues like this that have been already fixed. -
3. Re: rich:fileUpload problems
jobb May 21, 2008 6:26 AM (in response to jobb)Downloaded 3.2.1-SNAPSHOT jars from richfaces-ui-3.2.1-20080410.193356-1-bin.zip 10-Apr-2008 16:49 12M , and there are still the same problems with listeners using fileUpload inside modalPanel.
-
4. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 6:32 AM (in response to jobb)Did you download only UI jar?
To migrate to 3.2.1 version you should update UI, IMPL, API jars. -
5. Re: rich:fileUpload problems
jobb May 21, 2008 6:35 AM (in response to jobb)I've downloaded all 3 jars from http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.2.1-SNAPSHOT/
Is there an other place I should pickup 3.2.1 jars ? -
6. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 6:46 AM (in response to jobb)Can you try the latest SNAPSHOT (not a 10 April)?
-
7. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 7:17 AM (in response to jobb)I reproduced the problem.
The issue was added to JIRA: http://jira.jboss.com/jira/browse/RF-3492.
Thanks. -
-
9. Re: rich:fileUpload problems
jobb May 21, 2008 7:22 AM (in response to jobb)By the way, could you give me the correct url to latest SNAPSHOTS 3.2.1 ? (I have checked my application and there are more problems using SNAPSHOT from 10 April ).
-
10. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 7:23 AM (in response to jobb)I found workaround for a quick fix.
Remove parent form element outside the modalPanel.
I my invironment it solved the problem. Listener fires properlly. -
11. Re: rich:fileUpload problems
andrei_exadel May 21, 2008 7:27 AM (in response to jobb)http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.2.1-SNAPSHOT/
There is list sorted ASC by date.
See the end of the list :)