-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
Over the last few chapters, we added the ability for our users to upload and share files with their teammates. As with messages, files are displayed on the home page in the order they are added to the system. Currently all messages and files are displayed on the home page. Over time, our home page is going to become rather large and unwieldy. We need a user's home page to show only the files and messages that they are interested in. To do this, users need to be able to tag their content.
We will implement a simple tagging solution, restructure the home page and then add some new pages to the application for viewing all of the messages and files.
The new Grails concepts that will be introduced in this chapter are:
Working with inheritance in the domain classes, and looking at which strategies GORM supports for persistence
Using polymorphic queries over a domain inheritance hierarchy
Encapsulating view-rendering logic in GSP templates
Manipulating collections...
Change the font size
Change margin width
Change background colour