ICEfaces
  1. ICEfaces
  2. ICE-9121

FileEntryFormSubmit.processEvent() invoked too often.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: EE-4.0.0.GA, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Icefaces 3.3 from trunk
    • Assignee Priority:
      P1

      Description

      I got app with many separated pages. Some of the use ace:fileEntry.
      Breakpoint on FileEntryFormSubmit.processEvent() amazingly show this method is called 6-9 times on pages also on pages without ace:fileEntry included?

        Activity

        Hide
        Mircea Toma added a comment -

        Added back FileEntryLoader class to register FileEntryPhaseListener on startup. FileEntryPhaseListener is responsible for running the validation phase during an upload.

        Show
        Mircea Toma added a comment - Added back FileEntryLoader class to register FileEntryPhaseListener on startup. FileEntryPhaseListener is responsible for running the validation phase during an upload.
        Hide
        Mircea Toma added a comment -

        Introduced view scoped bean that records when beans are disposed first. This is then used to decide if ICEfaces' bean disposal code need to run.

        Show
        Mircea Toma added a comment - Introduced view scoped bean that records when beans are disposed first. This is then used to decide if ICEfaces' bean disposal code need to run.
        Hide
        Carmen Cristurean added a comment -

        All MyFaces specific issues are still reproducible in showcase on IF4 trunk r.44073.

        Show
        Carmen Cristurean added a comment - All MyFaces specific issues are still reproducible in showcase on IF4 trunk r.44073.
        Hide
        Mircea Toma added a comment - - edited

        Wired FileEntryFormSubmit listener for form pre-render events to ensure that FileEntry can be found among the grand/children of the form. Previously the listener was executed on form post-add to view events with the condition of finding the FileEntry component among the children, but of course there are cases where the FileEntry is not yet in the tree at that time.

        Show
        Mircea Toma added a comment - - edited Wired FileEntryFormSubmit listener for form pre-render events to ensure that FileEntry can be found among the grand/children of the form. Previously the listener was executed on form post-add to view events with the condition of finding the FileEntry component among the children, but of course there are cases where the FileEntry is not yet in the tree at that time.
        Hide
        Mircea Toma added a comment -

        Modified ice.ace.fileentry.cancelFileSelection function to clone the submitting element and avoid serializing the included input[type=file] elements. This ensures that Myfaces will not invalidate the form submit and cause the issued single submit to fail (including the element cleanup it needs to do).

        Show
        Mircea Toma added a comment - Modified ice.ace.fileentry.cancelFileSelection function to clone the submitting element and avoid serializing the included input [type=file] elements. This ensures that Myfaces will not invalidate the form submit and cause the issued single submit to fail (including the element cleanup it needs to do).

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: