Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel2

 

 


...


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.

 


Back to Top

 


...

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). 


Back to Top 


...

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). 


Back to Top

 


...

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:

 


MethodDescription
setName

Sets the name of the component but sets also the servlet name (returned by javax.servlet.HttpServlet.getServletName().

setServletClassName

Sets the class name of the servlet to be instantiated by the servlet component.

setProperties

Defines the init parameters usually defined by adding init-param attributes to the servlet definition in the web.xml. These properties can be retrieved from javax.servlet.HttpServlet.getInitParameter() and javax.servlet.HttpServlet.getInitParameterNames

 

 



Note

The ServletContext of this servlet is the same as the ServletContext of nl.gx.webmanager.servlet.WCBDispatcherServlet since this is the servlet that dispatches all incoming HTTP requests to the appropriate component servlets.

...


When creating servlet components, be sure that they conform to the Plugin Development Guidelines (G083-G098 in particular).

...