Binding a Simple Visual Web JSF Component to a Web Service Method

See Also

In projects with Visual Web JSF support, you can bind a component to a web service method. A simple component displays one value. Examples of simple components include Button, Checkbox, Hyperlink, Text Field, or Static Text. For easiest data binding, use components from the Basic category of the Palette.

After you add a web service to the IDE and to a Visual Web JSF page, you can call a web service method by using either of the following techniques:

The examples in the following procedures describe how to call the same web service method by using both techniques.

To bind a component to a method:

  1. If the web service is not part of the IDE, add the web service to the IDE.
  2. Drag and drop the method onto the component.
  3. Right-click the component and choose Bind to Data.
  4. In the Bind to Data dialog box, click the Data Provider tab.
  5. Choose the method's data provider.
  6. Select the data field to display in the component.

To call a method in your Java code:

  1. If the web service is not part of the IDE, add the web service to the IDE.
  2. If the web service has not been added to the page, add the web service to the page.
  3. If desired, select a method to see its properties in the Properties window.
  4. If desired, test the web service's methods by completing the following steps:
    1. Expand the web-service-name node.
    2. Right-click the method and choose Test Method.
    3. Type a test value for the parameters and click Submit.
    4. View the results and click Close.
  5. Call the methods in your Java code.
See Also
About Web Services
Adding a Web Service to the IDE
Binding a List Component to a Web Service Method
Binding a Table Component to a Web Service Method
Projects Window
Editing Source Files

Legal Notices