ICEfaces
  1. ICEfaces
  2. ICE-4701

inputFile component is not styled on initial load

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      The inputFile component is rendered without style being applied. Only after a file is uploaded is when the style that is set for the component is applied.
      1. main.jspx
        2 kB
        Arran Mccullough
      2. TestBean.java
        1 kB
        Arran Mccullough
      1. inputFile-after-upload.JPG
        132 kB
      2. inputFile-before-upload.JPG
        118 kB
      3. ScreenHunter_01.jpg
        193 kB
      4. ScreenHunter_02.jpg
        242 kB
      5. ScreenHunter_03.jpg
        78 kB

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [50070000009Ldap]
        Arran Mccullough made changes -
        Attachment inputFile-before-upload.JPG [ 11841 ]
        Attachment inputFile-after-upload.JPG [ 11842 ]
        Attachment main.jspx [ 11843 ]
        Arran Mccullough made changes -
        Attachment TestBean.java [ 11844 ]
        Hide
        Arran Mccullough added a comment -

        Added screenshots that show that the style is not applied when the page is initially loaded and is applied when a file is uploaded. I also attached my example code which is very basic.

        Show
        Arran Mccullough added a comment - Added screenshots that show that the style is not applied when the page is initially loaded and is applied when a file is uploaded. I also attached my example code which is very basic.
        Ken Fyten made changes -
        Fix Version/s 1.8.2 [ 10190 ]
        Assignee Priority P3
        Assignee Yip Ng [ yip.ng ]
        Priority Major [ 3 ] Minor [ 4 ]
        yip.ng made changes -
        Attachment ScreenHunter_01.jpg [ 11860 ]
        Hide
        yip.ng added a comment - - edited

        The file upload is rendered inside its own iframe. Inside the iframe, the links to the stylesheets look like entries in the resource registry. And something has gone wrong with serving the resources. See screenshot 01.

        Show
        yip.ng added a comment - - edited The file upload is rendered inside its own iframe. Inside the iframe, the links to the stylesheets look like entries in the resource registry. And something has gone wrong with serving the resources. See screenshot 01.
        yip.ng made changes -
        Attachment ScreenHunter_02.jpg [ 11877 ]
        Attachment ScreenHunter_03.jpg [ 11878 ]
        Hide
        yip.ng added a comment - - edited

        Just change the style sheet links to use absolute paths:

        <ice:outputStyle href="/xmlhttp/css/rime/rime.css"/>
        <ice:outputStyle href="/css/style.css"/>

        See screenshots 02 and 03.

        Show
        yip.ng added a comment - - edited Just change the style sheet links to use absolute paths: <ice:outputStyle href="/xmlhttp/css/rime/rime.css"/> <ice:outputStyle href="/css/style.css"/> See screenshots 02 and 03.
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P3

          People

          • Assignee:
            yip.ng
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: