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. TestBean.java
        1 kB
        Arran Mccullough
      2. main.jspx
        2 kB
        Arran Mccullough
      1. ScreenHunter_03.jpg
        78 kB
      2. ScreenHunter_02.jpg
        242 kB
      3. ScreenHunter_01.jpg
        193 kB
      4. inputFile-before-upload.JPG
        118 kB
      5. inputFile-after-upload.JPG
        132 kB

        Activity

        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.
        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: