Chapter 7. Developing Using Components API

In this chapter we will cover:

  • Getting started with WebUI
  • Creating views
  • Handling different skins in a portlet
  • Adding the JavaScript resources to the portlet
  • Handling different locales in a portlet

Introduction

GateIn provides a web framework named WebUI (Web User Interface). This framework is similar to JSF because it is based on components.

Each part of the portal can be addressed to a Java class. Some examples of components are the pagination, the navigation, the login form, the pages, the application itself, the portlets, and the gadgets. GateIn has about 400 components provided by WebUI.

Most of these components work with the JSR 286 portlet framework, so they can leverage the following features:

  • Event-based flow
  • Components configuration by annotation
  • Groovy templates for rendering
  • Built-in AJAX support

Each portlet is automatically coupled with a WebUI reference, so this can be configured when you want through the XML configuration.

In this chapter, we will see some examples of customization and extension of WebUI components.

Note

WebUI is maintained by the eXo and JBoss communities, and is an internal product of GateIn. More details about this framework can be found here: http://wiki.exoplatform.com/xwiki/bin/view/Portal/WebUI.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.229