-
Book Overview & Buying
-
Table Of Contents
Spring Roo 1.1 Cookbook
A theme is a collection of CSS and image files that define the overall look and feel of the web application. Spring Web MVC framework provides built-in support for defining and applying themes. In the Auto-generating Spring MVC controllers and JSPX views from JPA entities recipes, we touched upon themes support in Roo-generated Spring Web MVC applications. In this recipe, we'll see in detail how to add new themes to Roo-generated Spring Web MVC applications and to modify default themes installed by Roo.
In this recipe, we'll make the following modifications to the Roo-generated flight-app web application:
Add a new custom theme
Modify existing themes to show different background color of menu headings, and different header images
Add a new standard theme, which is applied if the language is es (that is, Espanol)
Delete the contents of ch04-recipe the sub-directory inside the C:\roo-cookbook directory.
Copy the ch04_web-app.roo script into...
Change the font size
Change margin width
Change background colour