Web / Apache OFBiz Interview questions
What is the purpose of the Screen Widget?
The Screen Widget defines the layout and composition of a page in XML, independent of any specific template language. A screen widget file (usually *Screens.xml) says what decorator to use, what data to prepare, and which sub-elements - other screens, forms, menus, or a FreeMarker template - to place where.
This separation means the same screen definition can render through different renderers (HTML, FreeMarker, even XML/PDF exporters) and can be restyled by swapping themes without touching business logic.
A typical screen element chains actions (usually a service call or entity query to gather data) with a widgets section (the visual composition), keeping data-fetching and layout cleanly separated.
More Related questions...