djCurrencyTextBox - Dojo Currency Text Box

Accepts currency input.

Category

Dojo Form

Syntax

<xe:djCurrencyTextBox attributes>content</xe:djCurrencyTextBox>
Table 1. Essential properties
Property Description
id Defaults to djCurrencyTextBox1, djCurrencyTextBox2, and so on.
value Binds the control to a data element.

Usage

This is a Dojo control.

At run time, a text box appears on the page. The user can enter a currency value. On invalid input, a tooltip appears.

This control is not tested against the latest accessibility standards. The recommended accessible path is the Edit Box control.

Examples

This example consists of a currency text box bound to a scoped variable, a button for submitting the page, and a computed field that displays the value of the scoped variable.
<xp:table>
	<xp:tr>
		<xp:td>Currency Text Box</xp:td>
		<xp:td>
			<xe:djCurrencyTextBox id="djCurrencyTextBox1" value="#{sessionScope.djCurrencyTextBox1}"></xe:djCurrencyTextBox>
</xp:td>
	</xp:tr>
	<xp:tr>
		<xp:td>
			<xp:button value="submit" id="button1">
				<xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true">
			</xp:eventHandler></xp:button>
		</xp:td>
		<xp:td></xp:td>
	</xp:tr>
	<xp:tr>
		<xp:td>Value</xp:td>
		<xp:td><xp:text escape="true" id="computedField1" value="#{sessionScope.djCurrencyTextBox1}"></xp:text></xp:td>
	</xp:tr>
</xp:table>