-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
After successfully implementing file upload (as done in Chapter 7), we decide to get some feedback on the application from our users. It all starts well, our test-users post some messages and upload a few files. They start uploading different versions of a sales pitch. Suddenly someone pipes up: "How about if we could group the different versions of this document? We go through a number of revisions and it would be useful to be able to see the changes all together."
Being the pragmatic user-centered people that we are, and given how simple it was to get basic file upload working, we decide to get right on it! The first step is... You guessed it — domain modeling.
We are going to extract all the file details that are currently on the File class to a FileVersion class. The File class will become a file version aggregation, containing links to the current version and a list of FileVersion instances that represents the version history of...
Change the font size
Change margin width
Change background colour