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:11:59 UTC

[jira] Issue Comment Edited: (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 edited comment on WICKET-3456 at 3/12/11 6:10 PM:
-------------------------------------------------------------------

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>



      was (Author: wboyce@panix.com):
    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