Validation, type conversion, and formatting: All frontend validation in the
·
SpringBlog application will rely on JSR-303 Bean Validation. Spring 3's new type
conversion and formatting support will be used too. All the JSR-303 validation
messages will also support i18n as discussed in this chapter.
Rich User Interface and Ajax
All JavaScript libraries discussed in this chapter will be used to provide richness to the SpringBlog
application. Highlights are as follows:
User interface: jQuery and jQuery UI will be used for implementing SpringBlog's
·
user interface. For example, when searching blog entries by a date range, the date
picker widget will be used.
Rich-text editing: CKEditor will be used to provide rich-text editing support for
·
users when posting blog entries and comments.
Data grid with pagination: jqGrid will be used for browsing the blog entries in a
·
grid-based interface. Pagination support will be provided, and users will be able to
sort the entries by various attributes, as well as change the number of records
displayed per page. Moreover, we will use jqGrid's filter support to allow users to
search for entries by subject, post date range, and so on.
Security Support
In SpringBlog, Spring Security will be used to protect the functions. Highlights are as follows:
User and role: The SpringBlog database will have tables to store the defined users
·
and roles. For each user, roles granted will also be stored for authentication and
authorization. Users can only act on what they were allowed to do based on the
roles granted. For example, only the user who posted the entry can modify the
entry. In addition, only users with the administrator role granted can view the
audit history of an entry.
User interface: The user interface will be rendered based on the roles using the
·
techniques demonstrated in this chapter. In the views, Spring Security's JSP tag
library will be used to display user information, as well as display the functions
that the users are allowed to do. In addition, method-level security will applied at
the controller level wherever required, using Spring Security's annotation support.
Servlet 3.0 Support
The latest support of Spring 3.1 MVC with a Servlet 3.0­compatible web container will also be used in the
SpringBlog application. Highlights are as follows:
File upload: One feature in SpringBlog is that users can upload attachments to
·
their blog entries or comments. We will use Spring MVC 3.1 multipart support for
Servlet 3.0 to implement this feature.
For details, please refer to Chapter 21.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home