Text Field & Text Area

Text Field and Text Area are controls allowing user to enter text value. The Text Field allows to enter only single line of text. On the other hand the Text Area control allows user to enter multiple line of text. It's just something you would expect, wouldn't you?.

The property value of both controls contains the text entered in the control. The create password-like Text Field set it's property hideInput to true (the input is hidden only from view but it is still carried around in plain text).

syntax
elementnamespacename
Text Fieldhttp://pexeso-php.sourceforge.net/1.0TextField
Text Areahttp://pexeso-php.sourceforge.net/1.0TextArea

Example





Example source code

Source code of the exmaple above.

<?xml version="1.0" encoding="UTF-8"?>
<px:Component xmlns:h="http://www.w3.org/1999/xhtml"
	xmlns:px="http://pexeso-php.sourceforge.net/1.0"
	xmlns:ex="examples">
	<px:Form>
		<px:TextField name="username" value="name"/><h:br/>
		<px:TextField name="password" value="password" hideInput="true"/><h:br/>
		<px:TextArea name="notes" value="Write notes here."/><h:br/>
		<px:Button label="Submit" click="{$self->message->rendered=true}"/><h:br/>
		<h:span name="message" rendered="false">
		Submited username is <h:samp>{$self->username->value}</h:samp> and
		password is <h:samp>{$self->password->value}</h:samp>.<h:br/>
		Notes: {$self->notes->value}
		</h:span>
	</px:Form>
</px:Component>