HDIV API 2.0.4

org.hdiv.components
Class PropertyCustomHDIV

java.lang.Object
  extended by org.apache.struts2.components.Component
      extended by org.hdiv.components.PropertyCustomHDIV

public class PropertyCustomHDIV
extends org.apache.struts2.components.Component

Used to get the property of a value, which will default to the top of the stack if none is specified.

 

 
     
     

     TextUtils
     
 

 
 
 

 Example 1 prints the result of myBean's getMyBeanProperty() method.
 Example 2 prints the result of myBean's getMyBeanProperty() method and if it is null, print 'a default value' instead.

 
 
 

 <s:property value="getText('some.key')" />

 
 

Author:
Gorka Vicente

Field Summary
 
Fields inherited from class org.apache.struts2.components.Component
actionMapper, COMPONENT_STACK, id, parameters, stack
 
Constructor Summary
PropertyCustomHDIV(com.opensymphony.xwork2.util.ValueStack stack)
           
 
Method Summary
 void setDefault(java.lang.String defaultValue)
           
 void setEscape(boolean escape)
           
 void setValue(java.lang.String value)
           
 void setWrite(boolean write)
           
 boolean start(java.io.Writer writer)
           
 
Methods inherited from class org.apache.struts2.components.Component
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, toString, usesBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyCustomHDIV

public PropertyCustomHDIV(com.opensymphony.xwork2.util.ValueStack stack)
Method Detail

setDefault

public void setDefault(java.lang.String defaultValue)

setEscape

public void setEscape(boolean escape)

setValue

public void setValue(java.lang.String value)

setWrite

public void setWrite(boolean write)

start

public boolean start(java.io.Writer writer)
Overrides:
start in class org.apache.struts2.components.Component

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.