[
https://issues.apache.org/jira/browse/WICKET-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ross Gardler closed WICKET-1316.
--------------------------------
Resolution: Won't Fix
OK, so I just discovered StringHeaderContributor which enables me to do what I
need.
Oh well, at least this issue created another documentation reference to that
class ;-)
> HeaderContributor method to add a non CSS or Javascript element
> ---------------------------------------------------------------
>
> Key: WICKET-1316
> URL: https://issues.apache.org/jira/browse/WICKET-1316
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.3.0-final
> Reporter: Ross Gardler
> Priority: Minor
>
> HeaderContributor provides convenient methods for adding CSS and Javascript
> links to the head section. However, what if I want to add something like:
> <link href="myJSON.js" type="application/json" rel="exhibit/data" />
> Is there any reason we cannot have the following method (or similar) in
> HeaderContributor:
> forGenericLink(String href, String type, String rel);
> Note that whilst this solves my specific needs (and I beleive common use
> cases) it may be a good to also provide a method such as:
> forGenericLink(Map attributes);
> Where the key is the attribute name. This would cover all use cases for the
> link element in <head>.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.