-
Book Overview & Buying
-
Table Of Contents
Grails 1.1 Web Application Development
By :
Not only have we built a valuable application for our users, we have now significantly reduced the development costs of future Grails projects that wish to make use of tagging behavior.
We have seen that creating a basic plug-in is a fairly simple business, but there are a few issues ready to trip up the unwary developer, such as referencing views and templates through the correct context path.
We have also seen that creating flexible and functional plug-ins requires a bit more thought, as well as a slightly deeper understanding of metaprogramming in Groovy. The benefit of taking the time to build a plug-in in such a way is that the design choices of developers who use the plug-in will not be limited. If we had left the plug-in in its original incarnation, where a domain class had to extend the Taggable class, then the plug-in would only be useful in the very simplest of applications. Consider how limiting it would be if you had to extend a Searchable class to make your domain classes...
Change the font size
Change margin width
Change background colour