-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Apache OfBiz Cookbook
The widgets element within a Screen widget definition may contain one or more XML statements defining an HTML markup tag. In the cases where it isn't practical to call another widget or a FreeMarker template, you may want to insert one or more HTML directives within the Screen widget definition.
Adding HTML markup is as simple as the following:
1. Within any widgets element, add one or more XML statements with HTML markup. Example XML HTML markup elements include: label, container, and link.
2. Close all HTML markup elements with respective end tags.
3. Save and close the file.
Note: The addition of HTML markup to a widget is immediate. You do not need to restart OFBiz.
HTML markup statements are interpreted inline (and in the order in which they are written) as the screen handler parses the screen's definition. There is a one-to-one translation between the XML-wrapped HTML markup and the target HTML output.
The following...
Change the font size
Change margin width
Change background colour