The Account widget is a more complex than the ToggleButton widget, and it consists of two Label widgets and a SelectList widget.
Sample Account widget
When selecting an account number from a list, the balance of this account is displayed automatically. This composite widget can be reused in multiple scenarios, including account transferring and payment so that a functional developer does not need to create the three widgets and ECA rule for every scenario.
More advanced topics are covered in this sample. Listed below are tasks that are covered in this sample:
▪ Creating a figure class for widget.
▪ Creating a new widget definition .xml file for the widget.
▪ Registering widget extension point in plugin.xml.
▪ Implementing a customized property editor.
▪ Implementing a customized property mapping rule.
▪ Creating widget functions and events.
▪ Creating a widget mapping file.
▪ Add widget mapping extension point in plugin.xml.
▪ Implement jsp handler class for the widget.
▪ Implement JavaScript code for the widget.
▪ Modify template.jsp to add required js implementation for the widget.
▪ Create alphadojo.tld to add extended jsp tags for the widget.
The implementation items of this sample are in two projects: