The Sterling Web™ User Interface Architecture Guide provides an overview of the Sterling Web user interface, including the use of JSP, JavaScript, and CSS.
This guide describes how the Sterling Web user interface (UI) is structured, the technologies it uses, and the principles and conventions of UI development. Sterling Web is a Web-based application whose UI is based mainly on the Struts 2 framework, JSP, and JavaScript, with AJAX/AHAH for dynamic user experience and CSS for layout and look and feel. The guide covers only the "view" part of UI development; the detailed development process is in the Developer Guide.
The document explains the separation of responsibility between JSP (rendering HTML content), JavaScript (dynamic behavior, visual effects, input validation) and CSS (page layout and look and feel). It details the CSS model with its template, theme, common and page levels, the CSS folder structure, how to explore a theme, and procedures for common theme-related modifications such as changing styles for a Web store, tweaking the template size, adding new CSS classes, and adopting new UI components.
The UI is based mainly on the Struts 2 framework, JSP, and JavaScript, with CSS controlling layout and look and feel; the listed frameworks and UI technologies are JSP, CSS, Struts 2 and Ext Js.
No. The basic rules state that no inline styling is allowed in JSP and CSS classes must be captured in separate files.
It renders HTML code fragments to include all the basic and shared JavaScript libraries and CSS files, other than those included specifically by each individual page, and should be defined in every top-level JSP.
Create the CSS class in a page-level CSS file and test it, verify template-level layout rules, move theme-related attributes to theme.css, and replicate the setting to all other theme.css files.