|
|
Mastering Grails: Changing the view with Groovy Server Pages
|
Last Update 2008/4/2 8:54
|
Category
Programming
Groovy
|
Description
This month, I'll round out the MVC triptych with a discussion of Grails views. Views (as you might guess) are stored in the grails-app/views directory. But there's much more to the view story than the intuitively obvious directory name. I'll talk about Groovy Server Pages (GSP) and give you pointers to many alternative view options. You'll learn about the standard Grails tag libraries (TagLibs) and find out how easy it is to create your own TagLib. You'll see how to fight the ongoing battle for DRYness (see Resources) by factoring common fragments of GSP code into their own partial templates. Finally, you'll learn how to tweak the default templates for scaffolded views, thereby balancing the convenience of automatically created views with the desire to move beyond a Grails application's default look-and-feel.
|
|
Hits: 50
Rating: 0.00 (0 votes)
|
Groovy, Java's New Scripting Language
|
Last Update 2008/5/28 18:27
|
Category
Programming
Groovy
|
Description
Why would Bob McWhirter and James Strachan create a new scripting language? Why would they call it Groovy? More importantly, what features would enable Groovy to succeed when others are already entrenched? Let's answer the third question with a look at Groovy's features.
|
|
Hits: 86
Rating: 0.00 (0 votes)
|
Many-to-Many Mapping without Hibernate XML
|
Last Update 2008/6/5 12:56
|
Category
Database
:
Tools
:
Programming
Groovy
|
Description
One pattern that shows up repeatedly is creating a Many-to-Many relationship using a mapping class. In Rails, the hasMany/through directive provides this functionality. Grails doesn't have an explicit hasMany/through statement like Rails. Rather, Many-to-Many relationships are created implicitly by GORM via your domain classes.
|
|
Hits: 16
Rating: 0.00 (0 votes)
|
Mastering Grails: The Grails event model
|
Last Update 2008/8/21 16:19
|
Category
Tools
:
Programming
Groovy
|
Description
Building a Web site is a study in event-driven, reactive development. Your application sits idle, anxiously waiting for the user to send in a request. It passes back the response and then goes back to sleep until the next call. In addition to the traditional Web life cycle of HTTP requests and responses, Grails provides a number of custom touch points where you can tap into the event model and provide behavior of your own. In this article, you'll discover the myriad of events being thrown in during the build process. You'll customize the startup and shutdown of your application. And finally, you'll explore the life cycle events of Grails domain classes.
|
|
Hits: 16
Rating: 0.00 (0 votes)
|
|
Software Development Resources
|
Software Development Jobs
|