Screen widgets are part of the OFBiz Widget toolkit. They are the front line of the View element of the OFBiz MVC architecture. Every View in OFBiz starts with or is contained in a screen, and every screen is defined by a screen widget. An early examination of the View will eventually make the Model and Controller sections make more sense as we will learn the correct way to output data through screens that can be used throughout the later examples.
In this chapter we will be looking at:
Equipping a webapp with a screen widget view handler.
Creating a screen widget.
Understanding the anatomy of a screen widget.
Creating more complex screen widgets.
Integrating screen widgets with FreeMarker, a powerful template engine.