Using iWidgets with WebSphere sMash
Use the zero.iwidgets package to build and test iWidgets with IBM® WebSphere® sMash.
What are iWidgets?
An iWidget is a browser-oriented component (regardless of whether the browser or Web platform is provided by a traditional browser or some application like XULRunner) designed to work within the framework defined by the iWidget specification. Such a component only occupies a portion of the overall working canvas and is usually designed in a manner that makes it easy for the canvas assembler to connect the iWidget to other iWidgets on the canvas.
For more information on iWidgets, see the IBM Mashup Center wiki.
Developing iWidgets on WebSphere sMash
For each iWidget, create a new folder within app/iwidgets with the name of the iWidget. This is then accessible using the /iwidgets/<widgetName> URL. For example, if you create a folder hello within app/iwidgets which contains hello.xml, you can access hello.xml at http://locahost:8080/iwidgets/hello/hello.xml.
The zero.iwidgets.demo sample and tutorial demonstrate developing iWidgets on WebSphere sMash.
Publishing iWidgets to MashupHub
Use the publish command in the zero.iwidgets package to publish iWidget definitions to MashupHub.
The publish command works to publish iWidgets to MashupHub v1.1 or later. It will not work with v1.0.
- Usage:
-
zero iwidget publish -title=<title> -defURL=<defURL> -hub=<hub> -userid=<userid> -password=<password> [-version=<version>] [-desc=<desc>] [-docURL=<docURL>] - Example:
-
zero iwidget publish -title="Hello World Widget" -defURL=http://myhost.com:8080/hello/hello.xml -hub=https://myhubhost.com:9443/mashuphub -userid=admin -password=admin
The publish command publishes the specified iWidget definition URL to the specified IBM InfoSphere MashupHub.