Most data access builders in Portlet Factory generate data in XML format (the IXml class internally). This XML format is required when creating a service provider model using the Service Definition and Service Operation builders. This sample shows how you can create a service provider from data that comes from Java Object instead of XML. Once you have this provider, you get all the benefits of the provider/consumer architecture, such as automatic testing support, separation of data and presentation layers, and automatic support in the consumer model for high-level builders such as View & Form.
Here are some of the techniques illustrated in this sample:
- Use a linked java object builder to expose java class methods to your portlet factory project
- Create a service operation that calls a method that returns a list of strings
- Call the service operation and display the return values on a page
Notes on running the sample and prerequisites
Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command.