public class Head extends TagSupport
<base:page>
ag.
Syntax:
<base:head styles=... scripts=... >
Attribute | Default value | Required | Description |
styles | - | no |
A comma-separated list of stylesheet filenames that is needed by the page.
The main.css are menu.css automatically included.
The stylesheets must be located in the /include/styles folder.
Do not include the folder names in the stylesheet filename.
|
scripts | - | no |
A comma-separated list of javascript filenames that is needed by the page.
The main.js are menu.js automatically included.
The scripts must be located in the /include/scripts folder.
Do not include the folder names in the scripts filename.
|
Modifier and Type | Field and Description |
---|---|
private static String |
globalVersion |
private String |
localVersion |
private Page |
page
The parent <base:page> tag.
|
private static Pattern |
PATH_MATCH |
private String |
scripts
A comma-separated list of JavaScript filenames.
|
private static long |
serialVersionUID |
private String |
styles
A comma-separated list of stylesheets filenames.
|
private static Map<String,String> |
xtVersions |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Head() |
Modifier and Type | Method and Description |
---|---|
private void |
appendScripts(StringBuilder sb) |
private void |
appendStyles(StringBuilder sb,
String fontStyles,
boolean hideLongTexts) |
int |
doEndTag() |
int |
doStartTag() |
String |
getScripts() |
String |
getStyles() |
static String |
getVersionParameter(String absolutePath)
Get query parameter to the given absolute path (including root directory).
|
static void |
setExtensionVersion(String jarName,
String version)
Register the version for an exteniosn JAR file.
|
void |
setPageContext(PageContext pageContext) |
void |
setScripts(String scripts) |
void |
setStyles(String styles) |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private static final Pattern PATH_MATCH
private Page page
private String styles
private String scripts
private static final String globalVersion
private String localVersion
public static void setExtensionVersion(String jarName, String version)
getVersionParameter(String)
public static final String getVersionParameter(String absolutePath)
absolutePath
- An absolute path with or without the base-root directorypublic void setStyles(String styles)
public String getStyles()
public void setScripts(String scripts)
public String getScripts()
private void appendStyles(StringBuilder sb, String fontStyles, boolean hideLongTexts)
private void appendScripts(StringBuilder sb)
public void setPageContext(PageContext pageContext)
setPageContext
in interface Tag
setPageContext
in class TagSupport
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException