Details
Description
Run autoBeansFacelets, and go to upload a file
While testing 1.5.3, I noticed some redundant events being sent, when using a
file upload component in conjunction with a progress bar. Testing was done
using ice:inputFile in autoBeansFacelets, which is in the samples section of the
old repository.
Basically, there are two issues. The first is that when an upload is done,
there are three 100% events fired, instead of just one. The second issue is
that when you go to upload a second file, it first sends out a 100%
notification, then resets to a 0% notification.
Now, I found this within autoBeansFacelets, so there's a chance that a simpler
test case might send less events. I'm not sure.
15:03:37,968 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:38,125 INFO [STDOUT] ProgressBean.progress() filePercent: 0 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:39,078 INFO [STDOUT] ProgressBean.progress() filePercent: 7 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:39,984 INFO [STDOUT] ProgressBean.progress() filePercent: 14 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:40,921 INFO [STDOUT] ProgressBean.progress() filePercent: 18 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:41,765 INFO [STDOUT] ProgressBean.progress() filePercent: 19 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:42,609 INFO [STDOUT] ProgressBean.progress() filePercent: 22 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:43,515 INFO [STDOUT] ProgressBean.progress() filePercent: 28 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:44,375 INFO [STDOUT] ProgressBean.progress() filePercent: 30 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:45,234 INFO [STDOUT] ProgressBean.progress() filePercent: 31 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:46,140 INFO [STDOUT] ProgressBean.progress() filePercent: 34 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:46,953 INFO [STDOUT] ProgressBean.progress() filePercent: 38 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:47,812 INFO [STDOUT] ProgressBean.progress() filePercent: 42 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:48,656 INFO [STDOUT] ProgressBean.progress() filePercent: 49 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:49,546 INFO [STDOUT] ProgressBean.progress() filePercent: 50 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:50,375 INFO [STDOUT] ProgressBean.progress() filePercent: 55 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:51,187 INFO [STDOUT] ProgressBean.progress() filePercent: 58 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:52,062 INFO [STDOUT] ProgressBean.progress() filePercent: 65 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:52,875 INFO [STDOUT] ProgressBean.progress() filePercent: 68 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:53,875 INFO [STDOUT] ProgressBean.progress() filePercent: 71 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:54,718 INFO [STDOUT] ProgressBean.progress() filePercent: 72 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:55,578 INFO [STDOUT] ProgressBean.progress() filePercent: 75 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:56,578 INFO [STDOUT] ProgressBean.progress() filePercent: 84 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:57,375 INFO [STDOUT] ProgressBean.progress() filePercent: 87 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:58,218 INFO [STDOUT] ProgressBean.progress() filePercent: 88 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:59,062 INFO [STDOUT] ProgressBean.progress() filePercent: 89 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:59,859 INFO [STDOUT] ProgressBean.progress() filePercent: 92 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,578 INFO [STDOUT] ProgressBean.progress() filePercent: 6 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
While testing 1.5.3, I noticed some redundant events being sent, when using a
file upload component in conjunction with a progress bar. Testing was done
using ice:inputFile in autoBeansFacelets, which is in the samples section of the
old repository.
Basically, there are two issues. The first is that when an upload is done,
there are three 100% events fired, instead of just one. The second issue is
that when you go to upload a second file, it first sends out a 100%
notification, then resets to a 0% notification.
Now, I found this within autoBeansFacelets, so there's a chance that a simpler
test case might send less events. I'm not sure.
15:03:37,968 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:38,125 INFO [STDOUT] ProgressBean.progress() filePercent: 0 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:39,078 INFO [STDOUT] ProgressBean.progress() filePercent: 7 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:39,984 INFO [STDOUT] ProgressBean.progress() filePercent: 14 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:40,921 INFO [STDOUT] ProgressBean.progress() filePercent: 18 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:41,765 INFO [STDOUT] ProgressBean.progress() filePercent: 19 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:42,609 INFO [STDOUT] ProgressBean.progress() filePercent: 22 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:43,515 INFO [STDOUT] ProgressBean.progress() filePercent: 28 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:44,375 INFO [STDOUT] ProgressBean.progress() filePercent: 30 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:45,234 INFO [STDOUT] ProgressBean.progress() filePercent: 31 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:46,140 INFO [STDOUT] ProgressBean.progress() filePercent: 34 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:46,953 INFO [STDOUT] ProgressBean.progress() filePercent: 38 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:47,812 INFO [STDOUT] ProgressBean.progress() filePercent: 42 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:48,656 INFO [STDOUT] ProgressBean.progress() filePercent: 49 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:49,546 INFO [STDOUT] ProgressBean.progress() filePercent: 50 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:50,375 INFO [STDOUT] ProgressBean.progress() filePercent: 55 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:51,187 INFO [STDOUT] ProgressBean.progress() filePercent: 58 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:52,062 INFO [STDOUT] ProgressBean.progress() filePercent: 65 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:52,875 INFO [STDOUT] ProgressBean.progress() filePercent: 68 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:53,875 INFO [STDOUT] ProgressBean.progress() filePercent: 71 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:54,718 INFO [STDOUT] ProgressBean.progress() filePercent: 72 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:55,578 INFO [STDOUT] ProgressBean.progress() filePercent: 75 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:56,578 INFO [STDOUT] ProgressBean.progress() filePercent: 84 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:57,375 INFO [STDOUT] ProgressBean.progress() filePercent: 87 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:58,218 INFO [STDOUT] ProgressBean.progress() filePercent: 88 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:59,062 INFO [STDOUT] ProgressBean.progress() filePercent: 89 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:03:59,859 INFO [STDOUT] ProgressBean.progress() filePercent: 92 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:00,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,546 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,578 INFO [STDOUT] ProgressBean.progress() filePercent: 6 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
15:04:34,640 INFO [STDOUT] ProgressBean.progress() filePercent: 100 event:
java.util.EventObject[source=com.icesoft.faces.component.inputfile.InputFile@1f0940a]
Activity
Mark Collette
created issue -
Icefaces Administrator
made changes -
Field | Original Value | New Value |
---|---|---|
issue.field.bugzillaimportkey | 1315 | 12512 |
Ken Fyten
made changes -
Priority | Major [ 3 ] | Minor [ 4 ] |
Ken Fyten
made changes -
Component/s | QA [ 10016 ] | |
Component/s | Components [ 10012 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Fix Version/s | 1.6DR#4 [ 10060 ] | |
Fix Version/s | 1.6 [ 10031 ] | |
Assignee Priority | P3 | |
Assignee | Ken Fyten [ ken.fyten ] | Mark Collette [ mark.collette ] |
Mark Collette
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.6 [ 10031 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P3 | |
Assignee | Mark Collette [ mark.collette ] |
All works fine. Tested with ICEfaces 1.6.0 DR4 (trunk code between builds 10 and 11)