FileDocCategorySizeDatePackage
TextArea.javaAPI DocExample3258Mon Jul 23 13:26:36 BST 2007org.apache.struts2.components

TextArea

public class TextArea extends UIBean
Render HTML textarea tag.

Examples


<s:textarea label="Comments" name="comments" cols="30" rows="8"/>

see
TabbedPanel

Fields Summary
public static final String
TEMPLATE
protected String
cols
protected String
readonly
protected String
rows
protected String
wrap
Constructors Summary
public TextArea(com.opensymphony.xwork2.util.ValueStack stack, HttpServletRequest request, HttpServletResponse response)


           
        super(stack, request, response);
    
Methods Summary
public voidevaluateExtraParams()

        super.evaluateExtraParams();

        if (readonly != null) {
            addParameter("readonly", findValue(readonly, Boolean.class));
        }

        if (cols != null) {
            addParameter("cols", findString(cols));
        }

        if (rows != null) {
            addParameter("rows", findString(rows));
        }

        if (wrap != null) {
            addParameter("wrap", findString(wrap));
        }
    
protected java.lang.StringgetDefaultTemplate()

        return TEMPLATE;
    
public voidsetCols(java.lang.String cols)

        this.cols = cols;
    
public voidsetReadonly(java.lang.String readonly)

        this.readonly = readonly;
    
public voidsetRows(java.lang.String rows)

        this.rows = rows;
    
public voidsetWrap(java.lang.String wrap)

        this.wrap = wrap;