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"
supportedModes="view edit" mode="view" lang="en">
<![CDATA[<div>Hello World - View Mode</div>]]>
<![CDATA[<div>Hello World - Edit Mode</div>]]>
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