A Web Component is a web object that can be executed independently (like any other web object), or it can be part of another web object. This gives GeneXus Web application designers a high degree of reusability.
The most common examples of use are menus, logins, customization areas, and so on. For example, instead of implementing the menu load in every web object that uses it, the idea is to program it in a Web Component and reuse it in every object that requires a menu.
The developer has two ways to create a Web Component:
1) By selecting the New object option and after that, by selecting in the opened dialog the Web category and the Web Component object:
2) By selecting the New object option and after that, by creating in the opened dialog a Web Panel or a Transaction and setting their Type property with the Component value.
After having the web component defined, in order to use it inside another web object form, the developer has to insert a Web Component control over the desired web object form. Then, the developer must assign to the web component control, the name of the web component object to be showed inside the control.