ICEfaces
  1. ICEfaces
  2. ICE-1243

autoBeansFacelets ice:inputFile send redundant events

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6DR#4, 1.6
    • Component/s: QA
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      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]

        Activity

        Hide
        Mark Collette added a comment -

        All works fine. Tested with ICEfaces 1.6.0 DR4 (trunk code between builds 10 and 11)

        Show
        Mark Collette added a comment - All works fine. Tested with ICEfaces 1.6.0 DR4 (trunk code between builds 10 and 11)

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: