OverviewSince 4.0
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. Getting StartedTo 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. <h:form> <mobi:fetchContact id="contact" buttonLabel="Fetch a Contact" fields="name, email, phone" value="#{contactsBean.rawContact}" name="#{contactsBean.name}" email="#{contactsBean.email}" phone="#{contactsBean.phone}"/> </h:form> Attributes
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. Event ListenersNone. Client Behavior EventsNone. JavaScript APINone. Keyboard SupportStandard keyboard actions for HTML buttons are supported, such as tabindex and pressing the enter or space keys to activate the button. Known IssuesNone. Additional ResourcesSample ApplicationsThis component appears in the following ICEfaces sample applications: TutorialsThis component appears in the following ICEfaces tutorials: None |
FetchContact
© Copyright 2021 ICEsoft Technologies Canada Corp.