javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2861

h:inputFile f:ajax iframe visible in Chrome 26 and Firefox 20

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Using today's 2.2.1 snapshot javax.faces-2.2.1-20130502.074031-19.jar

      Description

      Given the below test file:

      test.xhtml
          <h:form enctype="multipart/form-data">
              <h:inputFile>
                  <f:ajax />
              </h:inputFile>
          </h:form>
      

      Selecting a file results in the file being uploaded via the hidden iframe trick. However, in Chrome 26 and Firefox 20 the border of the iframe is visible. The below screenshot is from Chrome.

      The solution is to add frameborder="0" to the <iframe> being generated.

        Activity

        Hide
        rogerk added a comment -

        Committed to trunk:

        Sending jsf-api/src/main/resources/jsf.js
        Transmitting file data .
        Committed revision 11933.

        Show
        rogerk added a comment - Committed to trunk: Sending jsf-api/src/main/resources/jsf.js Transmitting file data . Committed revision 11933.
        Hide
        rogerk added a comment -

        Committed.

        Show
        rogerk added a comment - Committed.
        Hide
        jid1 added a comment -

        Issue is still reproducible in Chrome.
        Using latest (15/5/13) version jsf-impl-2.2.1-20130511.082843-27

        ---Reproduced with---
        <h:inputFile id="fileUpload" value="#

        {eventView.file}

        ">
        <f:ajax execute="@this" render="@this" />
        /h:inputFile>

        Show
        jid1 added a comment - Issue is still reproducible in Chrome. Using latest (15/5/13) version jsf-impl-2.2.1-20130511.082843-27 --- Reproduced with --- <h:inputFile id="fileUpload" value="# {eventView.file} "> <f:ajax execute="@this" render="@this" /> /h:inputFile>
        Hide
        balusc added a comment -

        This is indeed not fixed yet. Still reproducible in 2.2.4.

        Show
        balusc added a comment - This is indeed not fixed yet. Still reproducible in 2.2.4.
        Hide
        balusc added a comment -
        Show
        balusc added a comment - Created https://java.net/jira/browse/JAVASERVERFACES-3052 for that.

          People

          • Assignee:
            rogerk
            Reporter:
            balusc
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: