public class EncodeTag extends BaseTag
<a onclick='<panel:encode name="doFoo()"/>'>Foo</a>
The example references a JavaScript function with the name doFoo
, which is encoded
to ensure uniqueness on the workspace page.BaseTag.JSPIncludeTrace
Constructor and Description |
---|
EncodeTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
static String |
encode(Panel panel,
String name)
Encode a name for a given panel context, appending it to a String depending on the panel.
|
static String |
encode(Panel panel,
UIBeanHandler uiBean,
String name)
Encode a name for a given panel context, appending it to a String depending on the panel.
|
String |
getName() |
static boolean |
isJavaIdentifier(String s)
Returns true if s is a legal Java identifier.
|
void |
setName(String name) |
getErrorPage, handleError, jspInclude, setErrorPage
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public String getName()
public void setName(String name)
public int doEndTag() throws javax.servlet.jsp.JspTagException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspTagException
TagSupport
public static String encode(Panel panel, UIBeanHandler uiBean, String name)
panel
- Panel being rendereduiBean
- factoryComponentname
- Symbolic name to encode @return an encoded version for that name, so that different panels have different names.public static boolean isJavaIdentifier(String s)
s
- String to checkpublic static String encode(Panel panel, String name)
panel
- Panel being renderedname
- Symbolic name to encodeCopyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.