This quick start guides you through the steps to create a widget.
You use IBM® WebSphere® Portlet Factory to run, test, and publish the widget on a locally-installed IBM Lotus® Mashups server.
If you are unable to install a Lotus Mashups server on your local development machine, you can establish access to a remote installation of a Lotus Mashups server.
Setting up a Mashup Server Configuration
Follow these steps to setup a Mashup server.
- Click on Windows -> Preferences
- Select WebSphere Portlet Factory Designer -> Server Configurations from the tree
- Click the Add button.
- Enter a name for your Server Configuration
- In the Server type drop down select WebSphere Application Server and IBM Mashup Center 2.0
- Enter the hostname of your server. If your Mashup server is local, http://localhost. If you are running Mashup Center remotely enter a full DNS host name. In most cases the SOAP Connector Port can remain 8880.
Note: If the soap connector port is not correct you can check the SOAP port of your server by accessing the Admin Console. In the admin console select Servers/Server Types/WebSphere Application Servers. Select server1 from the list then select Ports. You will see your Soap connector Address listed here.
- Enter a User Name and Password that has administrative access to Mashup Center.
- Click the Test Connection button to validate your entries.
- Click OK to save the Server Configuration
If you are deploying to a remote Mashup Center you will want to map a drive to the InstalledApps folder on the server to take advantage of the Auto Synchronize feature. If you do not setup a mapped drive you will need to Publish your project for running it to see your changes.
Create, test and publish a WebSphere Portlet Factory widget
Follow these steps to create a widget with WebSphere Portlet Factory to use with Lotus Mashups.
- Create a WebSphere Portlet Factory project.
- In Eclipse, click File -> New -> WebSphere Portlet Factory Project.
- Enter the name of the project.
- Click Next.
- Under Integration Extensions select Widget Extension and Excel Extension.
- Click Next.
- Select the Server Configuration you want to use when publishing the project.
- Click Finish.
- Click Yes when asked to publish the project.
- In the project, create a Model.
- Go to File -> New -> WebSphere Portlet Factory Model.
- Select the project for which you want to create the model. Click Next.
- Select the model type. In this case, select Excel Widget. Click Next.
- Enter the widget title and select the Mashups Toolbox category under which you want the widget to appear. Click Next.
- Optionally, enter the paging settings. Click Next.
- Optionally, enter the column settings. Click Next
- Optionally enter the Details Page settings. Click Next
- Enter the model name and click Finish.
- Go to Run -> Run....
- From the Run dialog box, click WebSphere Portlet Factory model -> Active Model.
- Click Run.
- The widget appears in your default browser.
- Modify and run the widget locally until you are satisfied.
- From the Active Project, publish the widget to the Lotus Mashups Toolbox. Right-click on the project name. Go to Widget -> Publish Widgets to Lotus Mashups toolbox to publish the widget. Select the widgets you want to publish and click OK.
Parent topic: Tutorials for IBM WebSphere Portlet Factory: wpf7