When you register a new iWidget definition URI in your portal, the portal infrastructure loads the corresponding iWidget definition XML file and maps the information provided by the referenced iWidget definition into corresponding portlet meta data. This includes information about events and modes that the iWidget supports. The title and description of the created IWidget Wrapper clone are derived from the corresponding values of the iWidgets idescriptor item set.
I used the register-iwidget-definition task to register 3 widgets as portlets. THen i used the Manage Web Modules portlet to find the wp.resolver.iwidget.portlet.war file and inside that there were 4 instances of IWidgetWrapper portlet, one for default IWidgetWrapper portlet and 3 instances were created for three portlets that i registered.
I wanted to check what preferences get set for widget defined by following HelloWorldIWidget.xml
<?xml version="1.0" encoding="UTF-8" ?>
<iw:iwidget id="HelloWorldIWidget" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget"
supportedModes="view edit" mode="view" lang="en">
<iw:content mode="view">
<![CDATA[<div>Hello World - View Mode</div>]]>
</iw:content>
<iw:content mode="edit">
<![CDATA[<div>Hello World - Edit Mode</div>]]>
</iw:content>
</iw:iwidget>
When i checked the preferences for the portlet this is what i saw
As you can see the actual markup is stored in a preference
1 comment:
Thanks for info
Web Design Company in Bangalore
Website development in Bangalore
Post a Comment