Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: adding onLoad is done differently now

...

Code Block
html
html
  <wicket:head>panel header</wicket:head>
  <body onload="function()">
      <wicket:panel>
          panel
      </wicket:panel>
  </body>

Wicket will not only inject the <wicket:head> region into the output, it will also (anymore) append the <body> onLoad attribute to the Page's onLoad attribute. The output generated may look like:

...

. To append javascript to the onLoad, have your component implement IHeaderContributor and add it there.

Linking directly to a CSS page

...