Runtime components : Presentation components : JSPs : Reference : Custom JSP tags : TextAreaTag
  
TextAreaTag
A TextAreaTag references a DataField in the context hierarchy and creates an HTML TextArea element containing the field's value.
Mandatory attributes
dataName
TextAreaTag attributes
dataName
Name of the DataField in the context hierarchy. If the DataField is read only, in Internet Explorer the text area is also read only.
If a form containing a text area is submitted, the context's element named dataName is set with the text area's value.
cols
Number of columns in the text area
Default value: null
rows
Number of rows in the text area
Default value: null
wrap
Whether the text area wraps the text
Default value: soft
error
Whether the text area contains an invalid value
Default value: no
errorStyle
Style for invalid text
Default value: font-style:italic; color:orangered
style
Style for the text area
Default value: null
custom
Adds attributes to the input element. The following is the format of this attribute:
custom="att1Name=\"att1Value\
"att2Name=\"att2Value\"..."
Default value: null
Example
<H1>Using the TextArea Tag</H1>
<dse:form name="f1" nextEventName="ok">
<table border="1">
<tr><td colspan="2">
<dse:textArea dataName="poem1" cols="35" rows="5"/></td><td>
<dse:textArea dataName="poem2" cols="20" rows="5" wrap="hard"/></td></tr>
<tr><td>
<dse:textArea dataName="poem3" cols="20" rows="5" wrap="off"/></td><td>
<dse:textArea dataName="readOnlyPoem" cols="20" rows="5" wrap="off"/></td><td>
<dse:textArea dataName="inErrorField" cols="20" rows="5" error="yes"/>
</td></tr></table>
<dse:button type="submit"/><br>
</dse:form>
Go up to
Custom JSP tags