Tomás Lin’s Programming Brain Dump

Flex, Grails, Facebook, iPhone and all that Jazz

Posts Tagged ‘Content Negotiation

Nine Lessons from building a Grails / Flex / Flash website

with 12 comments

I just finished putting the finishing touches on phase one of our video and animation heavy Flash / Grails / Flex site. We spent about 2 months on this site, figuring out how to get Flex, Flash and Grails to work together nicely, and I thought I would share some of the lessons learned in this post.

Read the rest of this entry »

Written by Tomas Lin

July 26, 2008 at 4:18 am

REST Service XML Output in Grails via Content Negotiation

with 5 comments

The content negotiation feature in Grails is pretty cool. In a nutshell, it allows you to return different formats based on the request of your page.

A recent project I worked on used Grail’s ability to generate CRUD as GSP pages to provide a basic CMS service, and an Adobe Flex front-end that communicated with Grails via REST services. We needed a solution that will preserve the original GSP html output, as well as the ability to return the data as XML for the REST layer.
Read the rest of this entry »

Written by Tomas Lin

May 15, 2008 at 4:01 pm