|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
nl.gx.webmanager.taglib.util.ContainsPropertyTag
public class ContainsPropertyTag
Implements the containsProperty tag.
Checks whether the class specified by attribute object has a certain method that return
property , which is specified by attribute property. The result of the check can be placed
in the pageContext under the key specified by the attribute var. Example:
<wmedit:containsProperty var="prop" object="${editcontext.baseObject}"
property="propertyName" />
This tag checks if object class set with ${editcontext.baseObject} parameter contains
getter method for propertyName parameter. Boolean value is converted to String and bind to
prop variable in the page context. This variable may later be used in page to,
for example, display or omit parts of the page.
| Constructor Summary | |
|---|---|
ContainsPropertyTag()
|
|
| Method Summary | |
|---|---|
boolean |
containsProperty()
Check if Class contains getter method for attribute property. |
void |
doTag()
Sets the key in the pageContext specified by attribute var |
java.lang.Object |
getObject()
Return the required object class attribute |
java.lang.String |
getProperty()
Returns the required property attribute. |
java.lang.String |
getVar()
Return the name of the variable to which the 'true' or 'false' value will be assigned or null if not set. |
void |
setObject(java.lang.Object object)
Setter for the required object attribute. |
void |
setProperty(java.lang.String property)
Setter for the required property attribute. |
void |
setVar(java.lang.String var)
Setter for the optional var attribute. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainsPropertyTag()
| Method Detail |
|---|
public java.lang.String getVar()
public void setVar(java.lang.String var)
var - the var to setpublic java.lang.Object getObject()
public void setObject(java.lang.Object object)
object - the object to setpublic java.lang.String getProperty()
public void setProperty(java.lang.String property)
property - the property to setpublic boolean containsProperty()
property.
true if class contains getMethodName or isMethodName getter method for given
property otherwise return false
public void doTag()
throws javax.servlet.jsp.JspException
var
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspExceptionSimpleTag.doTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||