|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:fetchContact component renders a button that launches the Bridgeit application on the user's device to retrieve the details of a particular contact stored in the device and upload such information to the server, storing the details in various properties of this component.
To start using the FetchContact component, place the mobi:fetchContact tag inside a form and bind the value (and optionally other attributes) to a backing bean property.
buttonLabel="Fetch a Contact"
fields="name, email, phone"
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 value attribute is where the raw contact information is stored.
The name is where the name from the contact is stored.
The phone is where the phone of the contact is stored.
The email is where the e-mail of the contact is stored.
The fields attribute specifies which details from the contact are retrieved. It can include the following values, separated by commas: 'name', 'email', and 'phone'.
The buttonLabel specifies the label of the button before it is activated.
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: