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

Add factory methods to JavaScriptHeaderItem to create a deferred JavaScript header item.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: None
    • Labels:
      None

      Description

      JavaScriptHeaderItem provides different factory method named forReference to create a JavaScript item from a resource reference. However if we want to make this script deferred, we must use additional parameters such as id and page parameters.
      This is not much comfortable if we don't want to handle these parameters and forces us to pass null values for them.
      We could add a couple of versions of method forReference with a minimal number of parameters (see patch).

        Attachments

        1. WICKET-4778.patch
          5 kB
          Andrea Del Bene

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              bitstorm Andrea Del Bene
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: