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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case11331Example.war [ 14535 ]
        Attachment Case11331Example.zip [ 14536 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000MHZeZ]
        Ken Fyten made changes -
        Assignee Priority P1
        Assignee Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Fix Version/s 3.1.0.RC1 [ 10337 ]
        Fix Version/s 3.1 [ 10312 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: