Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2085

absolute urls for icon selectors preprends context-root when it shouldn't

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-core
    • Skinning
    • None

    Description

      In the trinidad demo purple.css skin file, type an absolute url like
      this one:
      .AFErrorIcon:alias { content:
      url('http://127.0.0.1:7101/trinidad-demo-context-root/faces/afr/skins/purple/images/info.png');
      }
      set trinidad-config.xml to use the purple skin
      run af:icon demo
      Type in 'error' for the type
      Use firebug and hover on the Error text. You will see that the url has the
      context-root prepended to it, when it shouldn't.

      ACTUAL
      <img width="16" height="16" border="0" alt="Error" title="Error"
      class="AFErrorIconStyle"
      src="/trinidad-demo-context-root/http://127.0.0.1:7101/trinidad-demo-context-root/faces/afr/skins/purple/images/info.png">

      EXPECTED
      <img width="16" height="16" border="0" alt="Error" title="Error"
      class="AFErrorIconStyle"
      src="http://127.0.0.1:7101/trinidadt-demo-context-root/faces/afr/skins/purple/images/info.png">

      absolute urls work fine for background-images that are written to the css
      file. This is strictly a Skinning Framework Icon issue. Possibly we are
      creating the wrong type of Icon (ContextImageIcon instead of URIIIcon) when
      we create Icons in StyleSheetDocument or SkinStyleSheetParserUtils.

      Attachments

        1. isAbsoluteURIPatch.patch
          5 kB
          Jeanne Waldman

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            jeanne.waldman@oracle.com Jeanne Waldman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: