Anchor | ||||
---|---|---|---|---|
|
In This
...
Topic
Table of Contents | ||
---|---|---|
|
In /wiki/spaces/PD/pages/24721163
...
In Adding an Input Field to a Component, the main XperienCentral component types element, panel and media item are described. This section topic describes the component types presentation, service, form, and servlet.
...
Anchor | ||||
---|---|---|---|---|
|
A presentation component contains all the files that make up the layout of the website environment. By default XperienCentral comes with one presentation plugin named “XperienCentral Corporate". In the context of this document, a style refers to the layout objects that are contained by a presentation component (including JSPs, images, etc.).
...
When creating presentation plugins, be sure that they conform to the WCB the Plugin Development Guidelines (/wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296 and /wiki/spaces/PD/pages/24721296 G083-G098, G138, G139, G140, G142, G143 and G144 in particular).
Using Multiple Styles at the Same Time
It is possible to have two (or more) styles installed on the same XperienCentral installation at the same time without them conflicting with each other. In order to do so the following two rules must be followed:
...
In this case the different styles will be available in XperienCentral and can be assigned to pages, elements, etc., individually. When a style is removed by uninstalling the presentation component which publishes the style, only those elements that were specifically assigned to this style are affected. Henceforth, these objects will use the default style instead.
Using One Runtime Style
The opposite approach is to have multiple presentation components each of which overwrites the other. Only one presentation component will be active at a time. In this case the following rules must be followed:
...
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 development guidelines (/wiki/spaces/PD/pages/24721296, /wiki/spaces/PD/pages/24721296 and /wiki/spaces/PD/pages/24721296 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 development guidelines (/wiki/spaces/PD/pages/24721296 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:
http://<hostname>:<portnumber>/<context>/wcbservlet/<componentid>
Where 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 development guidelines (/wiki/spaces/PD/pages/24721296 Plugin Development Guidelines (G083-G098 in particular).