Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Would you use Laszlo to develop a Flash-based front end to a Java web app?

If you have a Java based web application (J2EE webapp - never mind which other underlying frameworks are being used), and you wanted to introduce a Flash based front-end, would you use Laszlo or would you rather expose a ReST-like XML interface and build and deploy a Flash application that uses that?

On one hand, Laszlo is quite amazing - doing for Flash what JSP does for HTML. It is easy to work with. It fits in very well with the rest of the web application (which is JSP based).

On the other hand it might be better to develop a complete Flash app decoupled from the server and use an XML-over-HTTP mechanism to bind the two. This would have the added advantage of being able to use the same XML interface for an AJAX front end if needed.

What would you do, and why?

like image 881
Vihung Avatar asked Dec 30 '08 13:12

Vihung


4 Answers

I would create the contract-first services, deploy them separately, and then write the RIA client to access them.

Coming up with the schema first has the added benefit of completely decoupling the two during development. The RIA developer can create some synthetic XML streams to use for data while waiting for the services to come on-line.

like image 128
duffymo Avatar answered Oct 24 '22 11:10

duffymo


I might have considered Laszlo in the past, but today, I'd stay within the Java stack and use JavaFX.

like image 22
David Koelle Avatar answered Oct 24 '22 12:10

David Koelle


Laszlo is the product that never made it, there isn't a big enough ecosystem of developers around it.

I'd use Adobe Flex for the front end. The same benefits of using a markup language for doing flash, but it has a much larger developer base and open source projects to draw upon. For the data communication, use either REST or if you want to get clever, use BlazeDS.

like image 4
marstonstudio Avatar answered Oct 24 '22 11:10

marstonstudio


OpenLaszlo is a complete RIA framework, so I'm pretty sure that you can 'compile' it to a completely standalone app that communicates with the server over HTTP. It's really very similar to Flex. The advantage Flex has is a much bigger community, a full-blown IDE, and more resources (Adobe), while OpenLaszlo is a little more innovative in that you can deploy to Flash or AJAX from one codebase.

like image 1
Abdullah Jibaly Avatar answered Oct 24 '22 11:10

Abdullah Jibaly