ICEfaces
  1. ICEfaces
  2. ICE-5954

Seam + just-ice.jar + inputFile not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, 1.8.2-EE-GA
    • Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
    • Component/s: Framework, ICE-Components
    • Labels:
      None
    • Environment:
      Seam + just-ice.jar

      Description

      When using Seam Mail and Seam PDF with ICEfaces, you have to use just-ice.jar instead of icefaces.jar, and also use the view handler delegation. In this scenario, the ice:inputFile component is not working. It will render out, but when you do an upload it disappears. No error is shown in any log, it just silently fails, and returns to result to the browser. Seam + icefaces.jar, in the Seam component-showcase does demonstrate a functioning inputFile component, so it's specific to just-ice.jar.

        Activity

        Hide
        Mark Collette added a comment -

        In an icefaces.jar environment, it includes a Seam components.xml file for disabling Seam's multipart filter, which enabled ice:inputFile to function, and disables Seam's file upload component. It looks like just-ice.jar does not have this file, and that's the cause of the problem. Judy put the disabling markup into her application's components.xml, and it started working again. So, the necessary fix is to have just-ice.jar to include the same components.xml file that icefaces.jar does.

        Show
        Mark Collette added a comment - In an icefaces.jar environment, it includes a Seam components.xml file for disabling Seam's multipart filter, which enabled ice:inputFile to function, and disables Seam's file upload component. It looks like just-ice.jar does not have this file, and that's the cause of the problem. Judy put the disabling markup into her application's components.xml, and it started working again. So, the necessary fix is to have just-ice.jar to include the same components.xml file that icefaces.jar does.
        Hide
        Judy Guglielmin added a comment -

        workaround for until this jira is resolved is to include the following line (once you define namespace for "web") in components.xml:-

        <web:multipart-filter disabled="true"/>

        Show
        Judy Guglielmin added a comment - workaround for until this jira is resolved is to include the following line (once you define namespace for "web") in components.xml:- <web:multipart-filter disabled="true"/>
        Hide
        Judy Guglielmin added a comment -

        attached sample application to test with (use maven to build with >mvn clean package)
        best to use jboss AS (as it has all the requirements for seam-tx mgmt, etc).

        Show
        Judy Guglielmin added a comment - attached sample application to test with (use maven to build with >mvn clean package) best to use jboss AS (as it has all the requirements for seam-tx mgmt, etc).
        Hide
        Mark Collette added a comment -

        The attached file includes the work-around.

        Show
        Mark Collette added a comment - The attached file includes the work-around.
        Hide
        Mark Collette added a comment -

        Fixed for just-ice.jar

        Subversion 22069
        icefaces\core\build.xml

        Show
        Mark Collette added a comment - Fixed for just-ice.jar Subversion 22069 icefaces\core\build.xml

          People

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

            Dates

            • Created:
              Updated:
              Resolved: