ICEfaces
  1. ICEfaces
  2. ICE-8225

ace:fileEntry - upload listener is not called when commandButton returns an action

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, EE-3.0.0.GA, 3.1.0.BETA1
    • Fix Version/s: 3.1.0.RC1, 3.1, EE-3.0.0.GA_P01
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P1

      Description

      If a commandButton returns navigation, the fileEntry listener will not run. In our testing, if the commandButton that submits the form containing a fileEntry returns a navigation case or navigation string, the fileEntry listener doesn't run at all. Since the listener also can't return a navigation case, the only way we have of routing the user to a different view after uploading a file is by doing a hard redirect inside of the listener. For optional files, we also have to dual-develop the navigation - once in a button that doesn't have the file and returns a navigation, the second time inside the listener.

      Please see attached fileUploadProblem2.xhtml for a demonstration. The first submit button is not wired to an action. The second is wired to an action that returns null. Both work. The third is wired to an action that returns navigation. It fails. You can see in console that the UploadBean's "Set a file" output is never produced.

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: