org.apache.tapestry5.annotations
Annotation Type IncludeStylesheet
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface IncludeStylesheet
Used to automatically include a CSS stylesheet when rendering the page. The value is an asset reference; relative
paths are relative to the Java class, or a "context:" prefix can be used to reference resources in the web
application.
This saves the work of injecting the asset into a field and injecting the PageRenderSupport environmental service,
and invoking the method.
Does not support setting a media type; if that is required. use RenderSupport.addStylesheetLink(org.apache.tapestry5.Asset,
String) directly.
- See Also:
Path,
IncludeJavaScriptLibrary
|
Required Element Summary |
String[] |
value
One or more paths to be injected. |
value
public abstract String[] value
- One or more paths to be injected. Symbols in the path will be expanded. The stylesheets may be localized.
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.