Re: Custom type for

2018-06-29 Thread Sebastien Briquet
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.


Custom type for

2018-06-29 Thread Alberto Brosich


Hello,

I need to put a script tag in the header with a custom type
("application/ld+json").

I used JavaScriptHeaderItem and it put "text/javascript" as type
attribute and it seems it's not possible to set it. Also other
HeaderItem classes do not help.

Any suggest?

Best regards

Alberto


Wicket version 8.0.0

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org