org.ztemplates.render
Annotation Type ZScript


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ZScript

Annotation for specifiying <sript>> tags that are needed by the template, especially JavaScript needed by Ajax applications. ztemplates collects all declarations and makes them available as "$script" to the template. Duplicates are removed and the order from the ZScript annotations is preserved.


Optional Element Summary
 ZCss[] css
          one or many paths relative to the contextPath or absolute pointing to scripts needed by this view
 ZJavaScript[] javaScript
          one or many paths relative to the contextPath or absolute pointing to scripts needed by this view
 String property
          the name of a property of type ZScriptDependency that declares needed scripts at runtime.
 

javaScript

public abstract ZJavaScript[] javaScript
one or many paths relative to the contextPath or absolute pointing to scripts needed by this view

Default:
{}

css

public abstract ZCss[] css
one or many paths relative to the contextPath or absolute pointing to scripts needed by this view

Default:
{}

property

public abstract String property
the name of a property of type ZScriptDependency that declares needed scripts at runtime.
example:

Default:
""


Copyright © 2011. All Rights Reserved.