Wednesday, March 28, 2012

Part1:iWidget - Developing iWidget for wps7 using RSA

1. Open RSA in Web Perspective
2. Click File>Project



3. Select Web> iwidget (alternatively type the keyword iwidget in the
text box)


4. Choose option 2 "Web and JavaEE technologies(Ajax, HTML, CSS, JSP,
Servlet etc.)" and click Next

Note: iWidget created using the option 1: "Web technologies(Ajax, HTML,
CSS etc.)" cannot be directly exported as WAR, so in order to export it
as war chose option 2 "Web and JavaEE technologies(Ajax, HTML, CSS, JSP,
Servlet etc.)"


5. Type the project name as "HelloWidget" and click Next


6. Select iWidget type as "Simple Widget" and click Finish


7. You will have the project created in bellow folder structure


8. The Sample code HelloWidget.xml created is as bellow

<?xml version="1.0" encoding="UTF-8" ?>
<iw:iwidget id="HelloWidget" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget"
supportedModes="view" lang="en" iScope="HelloWidgetScope">
<iw:content mode="view">
<![CDATA[
<div>Hello World</div>
]]>
</iw:content>

</iw:iwidget>

No comments:

Post a Comment