O'Reilly logo

Apache OFBiz Cookbook by Ruth Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating HTML web pages

Creating a new web page begins with defining an OFBiz "screen". Web page screens are built by creating one or more Screen widget definitions used by the OFBiz screen handler to generate HTML.

Getting ready

Ensure you have the "screen handler" defined in the controller.xml file for your webapp as shown here:

<handler name="screen" type="view"
class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>

To create a new OFBiz screen, it is often easiest to add a Screen widget definition to an existing Screen widget definition file. These files are XML documents, usually located under the widgets directory within a containing Component.

If you want to create a new Screen widget definition file, copy an existing file and remove all ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required