Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5909

Session style is not taken into account when loading mounted resources.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0-M5, 6.19.0
    • Fix Version/s: 7.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      Session#getStyle is not considered when a mounted package resource is loaded. Wicket loads the default one.
      If the resource is not mounted, everything works fine and Wicket delivers the correct resource file.

      Quickstart is attached. There are two CSS files: styled.css and styled_orange.css. The corresponding package resource is mounted. The session style is set to orange in WicketApplication#newSession. Expected behavior is that styled_orange.css is delivered to a browser. Instead styled.css is delivered.
      There is a workaround: see WorkaroundResourceStreamLocator.

        Attachments

        1. wicket.patch
          3 kB
          Andrea Del Bene
        2. style-bug.zip
          24 kB
          Sergiy Barlabanov

          Activity

            People

            • Assignee:
              bitstorm Andrea Del Bene
              Reporter:
              barlabanov Sergiy Barlabanov
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: