Wicket
  1. Wicket
  2. WICKET-5429

ResourceReference's properties are not preserved when using reference replacement

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.12.0
    • Fix Version/s: 6.13.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      Media property of link (css) is not set if addResourceReplacement is set on WebApplication.init :

      I set a css file on page via renderHead(IHeaderResponse response) with screen media :

      @Override
      public void renderHead(IHeaderResponse response)

      { response.render(CssHeaderItem.forReference(OriginalResourceReference.get(), "screen")); }

      and after if I defined a resourceReplacement on application init :

      @Override
      public void init()

      { super.init(); addResourceReplacement(OriginalResourceReference.get(), new CssResourceReference(OriginalResourceReference.class, "overwrite.css")); }

      I don't have the property media="screen" when wicket generated page.

      Duto

      1. fix-WICKET-5429.patch
        1 kB
        Cedric Gatay
      2. Sample.zip
        24 kB
        Duto
      3. WICKET-5429-RRBR.patch
        9 kB
        Martin Grigorov

        Activity

        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 6.13.0 [ 12325564 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Summary property media of link css ResourceReference's properties are not preserved when using reference replacement
        Emond Papegaaij made changes -
        Assignee Emond Papegaaij [ papegaaij ] Martin Grigorov [ mgrigorov ]
        Martin Grigorov made changes -
        Assignee Martin Grigorov [ mgrigorov ] Emond Papegaaij [ papegaaij ]
        Martin Grigorov made changes -
        Attachment WICKET-5429-RRBR.patch [ 12616783 ]
        Martin Grigorov made changes -
        Assignee Martin Grigorov [ mgrigorov ]
        Cedric Gatay made changes -
        Attachment fix-WICKET-5429.patch [ 12616554 ]
        Duto made changes -
        Field Original Value New Value
        Attachment Sample.zip [ 12615845 ]
        Duto created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Duto
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development