Internet banking developers should define widget entry in Component.xml for the widgets defined in Service.xml.
Here is an example of Component.xml:
<?xml version="1.0" encoding="UTF-8"?> <Components xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btt.cn.ibm.com/61/Web20" xsi:schemaLocation="http://btt.cn.ibm.com/61/Web20 ../BTTWeb20/schema/Component.xsd"> <component name="ComponentBase" class="BTTComponentBase"/> <component name="Page" class="BTTPage" scope="window" extend="ComponentBase"></component> <component name="Tab" class="BTTTab"></component> <component name="Column" class="BTTColumn"></component> <component name="Row" class="BTTRow"></component> <component name="ServiceRepository" class="BTTServiceRepository"></component> <component name="ServiceCategory" class="BTTServiceCategory"/> <component name="Service" class="BTTService"/> <component name="Widget" class="BTTServiceWidget"></component> <component name="attribute" class="BTTWidgetAttribute"></component> </Components>
Parameters specification for each tag are as follows:
Parameter | Description |
---|---|
component | Represents a registered component, and it has several attributes which describe the definition information of corresponding component. |
Parameter | Description |
---|---|
name | The name or key of a registered component, mandatory |
class | The constructor of registered component, mandatory |
extend | The parent of this component, optional |
scope | The scope or namespace of registered component, the default value is window, optional |