Hi, You can extend an AbstractStringResourceStream [1] and then pass its content to a StringHeaderItem [2]
[1] https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x/wicket-jquery-ui-core/src/main/java/com/googlecode/wicket/jquery/core/template/JQueryTemplateResourceStream.java#L69 [2] https://github.com/sebfz1/wicket-jquery-ui/blob/wicket8.x /wicket-jquery-ui-core/src/main/java/com/googlecode/wicket/jquery/core/template/JQueryTemplateHeaderItem.java#L65 Hope this helps, Sebastien.
