so on, out of the box. You can also instruct Roo to generate the presentation layer using Spring Web
Flow. For the view side, in version 1.2.0, when using Spring MVC, Roo will generate views in JSPX pages.
JSF support with PrimeFaces as the component library is also provided.
Roo also supports the implementation of extensions via its add-on architecture. At the time of writing,
there are many add-ons already (although some of the add-ons are still in the early development stage),
including add-ons for GWT, Vaadin, Adobe Flex, jQuery, and so on. Add-ons that support other Spring
projects, including Spring Security, Spring Integration, and so on, are also available.
STS also provides out-of-the-box support for Spring Roo. In STS, there is an option for you to create
a Spring Roo project, and a Spring Roo Shell is provided for you in STS too.
Applications generated by Spring Roo are highly customizable. If you want to override the default
behavior for any layer that was generated by Roo, take back the control on the logic you want to execute,
or add your own logic on the classes generated by Roo, you can do so; Roo's design provides a clean
separation of the logic that was generated by Roo and those implemented by developers.
In the following sections, we will present you with a high-level overview of Spring Roo and then see
it in action by developing a simple contact application.
Configure Spring Roo in STS
At the time of writing, STS 2.8.1 comes bundled with Spring Roo version 1.1.5. However, version 1.2.0
brings a lot of exciting new features, and we will use it for this section. So, we need to download and
install Spring Roo 1.2.0 and configure STS to use the new version of Spring Roo.
Download the Spring Roo 1.2.0 distribution from the URL
http://s3.amazonaws.com/dist.springframework.org/release/ROO/spring-roo-1.2.0.RELEASE.zip
(or from the SpringSource community project's download center at www.springsource.org/spring-
community-download) and unzip the file into your PC. Then, in STS, choose Window Preferences and
then the option Spring Roo Support. You will see the default version bundled is 1.1.5. Click the Add
button to add version 1.2.0, and browse to the folder of your Roo installation, as shown in Figure 20-8.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home