logo
Jan
17

Gravl: Referers, Geocoding, Charts

Continuing my obsession with the power of Grails filters, it was time to add some referer tracking and ipaddress Geocoding to Gravl to see where people are coming from. So I created a new RefererFilters class in conf and I was up and running. I already had a little CacheService happening, so I created a new 24 hour cache, scooped up some interesting browser header data, and squirrelled it away for...
Jan
14

Gravl: Implementing Security on the Cheap…

Grails Filters open up a whole new world of opportunity for jumping into the request pipeline to do your own custom processing. I’m really excited about getting Referer tracking real soon now, since I’ve learned the basics of Filters when I implemented Gravl’s very basic security model. The Grails community is working on some first class plugins for Acegi and JSecurity, but for if your...
Jan
11

Gravl: Mind the dust, we’re live with 0.1

Things are likely to be a little rough around the edges over this way… but welcome to the first live edition of Gravl! A few days ago my Pebble blog data become corrupt, so I was very motivated to get a rough and ready version of Gravl up and going. The code is fairly scrappy around the edges, and there will be issues (particularly not sure which browers will work with the Ajax comment magic going...
Jan
9

Gravl: CriteriaBuilder

Dynamic finders rock! But if you’re querying across tricky many-to-many joins, you might want to take advantage of GORM’s extremely powerful query DSL, criteriaBuilder. Criteria wraps Hibernate’s powerful Restrictions API, and gives you a wealth of expressiveness. For the Gravl archive, I wanted a “by tag” archive option, so you could see just the...
Jan
8

Gravl: Screencast, Command objects, Custom Validators, Pagination

Ok. My comment system is now pretty closed to being done, so it’s time to screencast some progress. Here’s a sample of comments in a Gravl Screencast (4mb) I though it might be a good chance to demonstrate command objects, the basic Grails Ajax tags and their usage, and how to handle errors nicely. I’ve added a Ajax “Preview” feature so you can see your comment markup...

« Previous Entries Next Entries »

logo
Powered by WordPress | Designed by Elegant Themes