Inserts multi-line text, breaking it into individual lines according to a mode. Commonly used to properly display the data provided by a user via the TextArea component.
See also: org.apache.tapestry.html.InsertText , org.apache.tapestry.html.InsertTextMode , TextArea
Name | Type | Direction | Required | Default | Description |
---|---|---|---|---|---|
value | string | in | yes | The multi-line string to render. | |
mode | InsertTextMode | in | no | BREAK | Controls how each line is rendered. |
raw | boolean | in | no | false | If true, then output is not filtered for HTML entities. Used when the value parameter contains markup that should be rendered as-is. |
Body: removed
Informal parameters: forbidden
Reserved parameters: none
The value parameter is split into multiple lines, and each line is printed. The default mode renders a <br/> tag between lines (that is, before each line after the first line output). The alternate mode renders <p> and </p> tags around each line.
The OGNL expression
@org.apache.tapestry.html.InsertTextMode@PARAGRAPH
can be used to specify paragraph rendering mode.