You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Guillaume Smet <gu...@gmail.com> on 2010/12/28 23:02:40 UTC
Why is TextTemplateHeaderContributor constructor protected?
Hi all,
Happy user of Wicket 1.4 and my first question on this list.
Is there a reason why the TextTemplateHeaderContributor constructor is
protected?
I want to use it to add a templated content to the header and this
content is neither CSS content nor Javascript
(TextTemplateHeaderContributor only public methods are forCss and
forJavascript).
While I could use directly a StringHeaderContributor, I think the
templating infrastructure present in TextTemplateHeaderContributor is
exactly what I need. It seems to me it's an interesting feature to
expose.
At the moment, I inherited my own TextTemplateHeaderContributor with a
public constructor from TextTemplateHeaderContributor but it could be
nice to make the constructor public directly in Wicket.
Thanks for your feedback.
--
Guillaume