Custom UIs are a user preferred way to add their own UI implementations into the registry. It is associated with Media types (To learn more information about Media types, please, visit the Adding a Resource page). By adding a few entries to the
component.xml, custom UIs can be plugged in to WSO2 products.We will be using the custom UI sample located at
$GREG_HOME/samples/custom-ui/ to explain the process of writing a custom UI.
component.xml contains the Custom UI configuration. The user has to define the:
Let us take a look at the
component.xml located at
There are three types of UIs that can be used:
For each UI type, you can specify the corresponding media type it will be associated to and the respective JSP that will be called. In the given example
component.xml, when a
epr Media type is added, the respective
epr_add_ajaxprocessor.jsp is called.
Please, take a look at the respective JPSs available in the source of the sample to have a better understanding of the implementation details. Basically, this JSP, will be what is displayed when the custom UI event occurs.
Follow the instructions given in the Custom UI with Registry to run the custom UI with Registry.
For an example of adding Custom UI, refer to Custom UI Sample .