ICEfaces
  1. ICEfaces
  2. ICE-5403

ActionListener for inputFile called multiple times in a Liferay environment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8.2-EE-GA
    • Fix Version/s: EE-1.8.2.GA_P03
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Liferay 5.2.3/5.1.2
    • Workaround Exists:
      Yes
    • Workaround Description:
      Set the managed bean for the inputFile to request scope.

      Description

      When the backing bean for an inputFile component is set to session scope. The actionListener for the inputFile is called multiple times.

      In testing on Liferay 5.2.3/JBoss 4.2 it is called 4 times. Testing on Liferay 5.1.2/JBoss 4.2 it is called 2 times.

      Testing on Tomcat 6.0 it is called only once and also if the backing bean is set to request scope it is also called only once on the mentioned Liferay instances.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case configured for Liferay

        Show
        Arran Mccullough added a comment - Attached test case configured for Liferay
        Hide
        Deryk Sinotte added a comment -

        Assigning to Mark. Perhaps keep an eye out for this behaviour as we approach the work to add stream-based support for the customer.

        Show
        Deryk Sinotte added a comment - Assigning to Mark. Perhaps keep an eye out for this behaviour as we approach the work to add stream-based support for the customer.
        Hide
        Arturo Zambrano added a comment -

        Couldn't reproduce this issue.

        I deployed the attached test app to a Liferay 5.2.3/JBoss 4.2 instance and saw the following message printed only once in the console window after clicking the upload button:

        21:48:23,852 INFO [STDOUT] Action Listener called!
        21:48:23,854 INFO [STDOUT] Action called!

        I tried this with different browsers and got the same result. I also modified the component-showcase app to display a message when the action listener in the inputFile bean is called. Again, this message was only printed once when clicking the upload button.

        I also tried all of this in other liferay instances like Lifeay6/Tomcat6, and got the same results.

        Show
        Arturo Zambrano added a comment - Couldn't reproduce this issue. I deployed the attached test app to a Liferay 5.2.3/JBoss 4.2 instance and saw the following message printed only once in the console window after clicking the upload button: 21:48:23,852 INFO [STDOUT] Action Listener called! 21:48:23,854 INFO [STDOUT] Action called! I tried this with different browsers and got the same result. I also modified the component-showcase app to display a message when the action listener in the inputFile bean is called. Again, this message was only printed once when clicking the upload button. I also tried all of this in other liferay instances like Lifeay6/Tomcat6, and got the same results.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: