public class Path extends StylableTag
Syntax:
<p:path id=... clazz=... style=... > <p:pathelement ... /> </p:path>
Attribute | Default value | Required | Description |
id | - | yes | The ID of the path. The value of this attribute
goes directly into the standard HTML id attribute.
This means that if you need a reference to the menu object in your own
JavaScript code, you may for example use the following code:
|
clazz | path | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different menus. If you set the type attribute to horizontal you
should also change this attribute to menu_horizontal .
|
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different menus. Note! If you want the menu to be hidden to begin with
you can use: style="display: none;" .
|
Modifier and Type | Field and Description |
---|---|
private int |
numElements
Keeps track of the number of path elements so separators can be added.
|
private static String |
ROOT
The path to the root directory of this webserver.
|
private String |
separator |
private static long |
serialVersionUID |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Path() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
(package private) String |
getRoot() |
(package private) String |
getSeparator() |
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private static String ROOT
private int numElements
private String separator
String getRoot()
String getSeparator()
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