...
Table of Contents | ||
---|---|---|
|
...
In Adding an Input Field to a Component, the main XperienCentral component types element, panel and media item are described. This topic describes the component types presentation, service, form, and servlet.
...
Be aware that between the first and second step the website will have no style and so is practically "offline". This only lasts for a short time if you install the new style immediately.
...
Service Component
A service component is a component that provides a (usually headless) service that can be used by other plugins. Typical services are, for example, an authorization service, license service or preferences service. They provide functionality that is available for all plugins, therefore they are implemented as a service.
The service component created by the archetype as described in the Quick start Start guide already provides a simple service component. The only thing you have to do is to implement the service and define the interface that it exposes. Other plugins will be able to define a dependency on this service component and use it.
When creating service components, be sure that they conform to the Plugin Development Guidelines (G083-G098, G112 and G151 in particular).
...
Form Component
A form component can be used to deploy form handlers into the XperienCentral application without a server restart. The form archetype generates a handler with an empty implementation. To implement the handler the doHandle
method of the handler must be implemented.
When creating form components, be sure that they conform to the Plugin Development Guidelines (G083-G098 in particular).
...
Servlet Component
A servlet component is a component that registers a servlet which is mapped to a predefined URL. The syntax of this URL is:
...
Where componentid
equals the ID of the component definition. The servlet component definition contains properties that you must pay particular attention to with regard to servlets. These property methods are:
Method | Description |
---|---|
setName | Sets the name of the component but sets also the servlet name (returned by |
setServletClassName | Sets the class name of the servlet to be instantiated by the servlet component. |
setProperties | Defines the |
Note |
---|
The |
...
When creating servlet components, be sure that they conform to the Plugin Development Guidelines (G083-G098 in particular).
...