--
PedroRio - 17 Feb 2011
XEO Web Components - Custom Component Creation
XEO comes bundles with a set of pre-defined componets to help you deal with various situations, but there will always be a situation where you need something so specific that you'll have to create your own custom component.
To create and user a XEO Web Component you need three parts (which will be explained in detail bellow):
- An Implementation class
- A Renderer Class
- Register the component project
_
Implementation Class
To create a new Custom XEO Web Component you'll need to define an implementation class which willbe responsible for declaring the component properties and the component's logic. A custom component must extend the
netgest.bo.xwc.framework.components.XUIComponentBase class (or any class that extends from that one, including XEO's own components).
When creating an implementation class you declare the set of properties of the components as class variables (of a particular type) and you can redefine some of the methods that are responsible for component logic (inherited from the XUIComponent Base Class). Read the following paragraphs in order to know how to declare component properties.
Component Properties
aaa
Component Behavior
aa
Renderer Class
The HTML Renderer
The Servlet
Registering the component in the project
Automatically done using XEO Studio, but can be edited manually
aaa
Using the Component in a Viewer
aa