|As of January of 2017 the BridgeIt project has been deprecated. As a result, this component has been removed from ICEfaces as of the 4.2 release.|
The mobi:sms component renders a button that launches the Bridgeit application on the user's device to send an SMS message.
For best results, add to the page a field to enter the telephone number to send the SMS to and another field to enter the message itself. These fields can be either plain HTML elements or ACE components such as ace:textEntry and ace:textArea. Make sure you give an id to them, then, add the mobi:sms tag and reference these fields by their ids in the numberInputId and messageInputId attributes.
<label for="smsNumber">Phone Number: </label>
<input type="text" id="smsNumber" />
<label for="smsMessage" style="vertical-align: top;">Message: </label>
<textarea id="smsMessage" />
<mobi:sms id="smsButton" messageInputId="smsMessage" numberInputId="smsNumber" buttonLabel="Send SMS"/>
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.
The buttonLabel specifies the label of the button.
The numberInputId specifies the id of the field that contains the number to send the SMS to.
The messageInputId specifies the id of the field that contains the message to send.
Client Behavior Events
Standard keyboard actions for HTML buttons are supported, such as tabindex and pressing the enter or space keys to activate the button.
This component appears in the following ICEfaces sample applications:
This component appears in the following ICEfaces tutorials: