Class WbzTextField

Object
   |
   +--WbzTextField

class WbzTextField

WbzTextField is based on the HTML-elements textarea und input and allows the editing of multi-lined unformated text.

attributes:

attributetypedescription
selectexpressionThe XPath-expression, that selects either an element or attribute
rows
optional
positiveIntegernumber of displayable rows, default is 1.
cols
optional
positiveIntegernumber of displayable columns, default is 40.
maxlength
optional
positiveIntegermaximum number of permitted charactes.
xmlContent
optional
boolean If this flag is set, the textfield will diesplay the XML-sourcecode of the first subnode. On validation of the field the text is parsed and the resulting DOM-Fragmentwill be inserted in place of the first subnode.

Validation occurs when enter is pressed or the text-field looses focus

Some simple samples:

   <wbz:view class="WbzTextField" select="@name"/>
   <wbz:view class="WbzTextField" select="name" maxlength="20"/>
   <wbz:view class="WbzTextField" select="content" cols="80" rows="4"/>

Requires:
wobzilla_transaction
wobzilla_xpath