-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
Tagging is a loose, community-based way of categorizing content. It allows a group of people to categorize by consensus. Anyone is able to tag a piece of content. The more a tag is used, the more meaning it takes on and the more widely used it becomes. This categorization by consensus has been dubbed as folksonomy (http://en.wikipedia.org/wiki/Folksonomy) in recent times.
So let's get started by building our tagging support.
When implementing tagging in our system, we need to consider the following:
We must be able to have many tags in our system
We must be able to associate a single tag with many different files and messages
We need to make sure that new domain objects can be easily tagged without having to change the tagging logic
We want to know when a domain object was tagged
To satisfy these requirements, we need to create the following new domain classes:
Tag — to store the name of the tag. There is one instance of this class per unique tag name in...
Change the font size
Change margin width
Change background colour