org.apache.tapestry5.corelib.components
Class TextArea

java.lang.Object
  extended by org.apache.tapestry5.corelib.base.AbstractField
      extended by org.apache.tapestry5.corelib.base.AbstractTextField
          extended by org.apache.tapestry5.corelib.components.TextArea
All Implemented Interfaces:
ClientElement, Field

public class TextArea
extends AbstractTextField

TextArea component corresponds to a <textarea> element. The value parameter is almost always bound to a string, but this is not an absolute requirement.

Includes the cols attribute, if a Width annotation is present on the property bound to the value parameter.

See Also:
TextOutput

Constructor Summary
TextArea()
           
 
Method Summary
protected  void writeFieldTag(MarkupWriter writer, String value)
          Invoked from AbstractTextField.begin(MarkupWriter) to write out the element and attributes (typically, <input>).
 
Methods inherited from class org.apache.tapestry5.corelib.base.AbstractTextField
getWidth, ignoreBlankInput, isRequired, processSubmission
 
Methods inherited from class org.apache.tapestry5.corelib.base.AbstractField
createDefaultParameterBinding, decorateInsideField, getClientId, getControlName, getLabel, isDisabled, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextArea

public TextArea()
Method Detail

writeFieldTag

protected final void writeFieldTag(MarkupWriter writer,
                                   String value)
Description copied from class: AbstractTextField
Invoked from AbstractTextField.begin(MarkupWriter) to write out the element and attributes (typically, <input>). The controlName and clientId properties will already have been set or updated.

Generally, the subclass will invoke MarkupWriter.element(String, Object[]), and will be responsible for including an AfterRender phase method to invoke MarkupWriter.end().

Specified by:
writeFieldTag in class AbstractTextField
Parameters:
writer - markup write to send output to
value - the value (either obtained and translated from the value parameter, or obtained from the tracker)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.