[
https://issues.apache.org/jira/browse/WICKET-3456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006069#comment-13006069
]
Willis Blackburn edited comment on WICKET-3456 at 3/12/11 6:11 PM:
-------------------------------------------------------------------
Here it is:
public void renderCSS(CharSequence css, String id)
{
if (css == null)
{
throw new IllegalArgumentException("css cannot be
null");
}
if (!closed)
{
List<String> token = Arrays.asList(css.toString(), id);
if (wasRendered(token) == false)
{
renderString(CssUtils.INLINE_OPEN_TAG + css +
CssUtils.INLINE_CLOSE_TAG);
markRendered(token);
}
}
}
Hmm, can't figure out how to write code comments in this new version of JIRA...
was (Author: [email protected]):
Here it is:
<pre>
public void renderCSS(CharSequence css, String id)
{
if (css == null)
{
throw new IllegalArgumentException("css cannot be
null");
}
if (!closed)
{
List<String> token = Arrays.asList(css.toString(), id);
if (wasRendered(token) == false)
{
renderString(CssUtils.INLINE_OPEN_TAG + css +
CssUtils.INLINE_CLOSE_TAG);
markRendered(token);
}
}
}
</pre>
> Would like a renderCSS method in IHeaderResponse
> ------------------------------------------------
>
> Key: WICKET-3456
> URL: https://issues.apache.org/jira/browse/WICKET-3456
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.4.15, 1.5-M3
> Reporter: Willis Blackburn
> Priority: Minor
>
> IHeaderResponse has a method called renderJavascript that accepts a string
> and adds the appropriate <script> tags to the markup.
> It would be nice if there was also a renderCSS method that would wrap its
> input in <style> etc.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira