You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Willis Blackburn (JIRA)" <ji...@apache.org> on 2011/03/12 19:09:59 UTC
[jira] Commented: (WICKET-3456) Would like a renderCSS method in
IHeaderResponse
[ https://issues.apache.org/jira/browse/WICKET-3456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006069#comment-13006069 ]
Willis Blackburn commented on WICKET-3456:
------------------------------------------
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);
}
}
}
> 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