Seam, Flex and Facelets integration

I just achieved a ‘seamless’ (what’s in a name) integration between JBoss Seam (backend) and Adobe Flex (frontend). The backend consists of a set of Seam components, exposed as REST services via RESTEasy, while the (Swiz-based) Adobe Flex application calls this services using the simple HTTPService object. The backend generates DOM4J based XML responses. The Flex application is embedded in a dynamically generated Facelets-based page. The Flex app allows customers to design a poster, and add them to their basket for later checkout. Once in the basket, an earlier designed poster can be re-opened by the Flex ‘designer’ by passing the poster identifier using the FlashVars variable. Works like a charm!