Navigation

RSS 2.0 New Entries Syndication Feed Atom 0.3 New Entries Syndication Feed

Show blog menu v

 

General

Use it

Documentation

Support

Sibling projects

RIFE powered

Valid XHTML 1.0 Transitional

Valid CSS!

Blogs : Archives

< RIFE plugin for X-develop   I'm now officially a Laszlo contributor! >
First Laszlo integration in existing site

A few weeks ago, one of our customers wanted to have real-time TV listings on their site. The currently airing program always had to be shown together with the one that follows. This information is provided by another company through pushed XML streams. Every time the information changes, we receive a new XML file on our server through secure copy.

I wrote a trivial scheduler task that picks up the last one of those files every five minutes and stores it straight into the RIFE content management back-end. This made it very easy to always provide the latest version of the information from the same URL.

Writing the Laszlo application was extremely straightforward. It fetches the XML directly from the server and lays it out automatically thanks to Laszlo's excellent data-binding features. Since the information is higher than the available height, I let the content pane scroll as soon as the lay-out is finished. When the scrolling is done, the application fetches the latest XML again, lays it out ... and round and round it goes.

I had one minor problem that was related to Flash's weird rounding habits. This caused the icons and the text to not be in sync and slightly fluctuate. It was quickly solved with the help of Henry from Laszlo Systems. He didn't hesitate to look at my code and pinpoint the problem. I just had to add the pixellock="true" attribute to the data bound view.

All in all it took me a couple of hours to write and the application is only 70KB in size! The customer is very satisfied and it was a pleasure to develop. I'm sure that I'll be reaching for Laszlo more and more for this kind of functionalities.

This is the result:

posted by Geert Bevin in Laszlo on Apr 26, 2005 6:18 PM : 4 comments [permalink]
 

Comments

Re: First Laszlo integration in existing site
Very interesting, since your last post on laszlo was quite caustic, it is refreshing to hear that you changed your opinion

Vik

Re: First Laszlo integration in existing site
Hmm Vik, thanks for your comments, but my last posts on Laszlo were totally different than the first very critical one. You can read the history here: http://rifers.org/blogs/gbevin/laszlo
Re: First Laszlo integration in existing site
Hi Geert, I am a beginner of J2EE world, recently I need to solve the problem of getting different reports (in different csv formats) from different subcontractor into database, it is kind of annoying to create all the java to deal with different files when you have 6 different companies and 4+ reports from them daily, then I need to have cron jobs set.

Is RIFE content management (or central data repository) a helpful tool to this problem? or any other alternative?

Sorry for the unrelated comment here, but I am kinda interested since it seems what you were doing is similar: "I wrote a trivial scheduler task that picks up the last one of those files every five minutes and stores it straight into the RIFE content management back-end."

Thanks,

Kwong

Re: First Laszlo integration in existing site
Hi Matthew, it depends what you have to do with those CVS files. In my case, I had to have one URL available where the latest version of the XML document was served as-is from the back-end. This is done in a couple of lines with the CMF. However, I think that in your use-case you have to parse the CVS files, extract the info and somehow consolidate them. RIFE's CMF doesn't help with that.

Add a new comment

Comments on this blog entry have been closed.

< RIFE plugin for X-develop   I'm now officially a Laszlo contributor! >
 
 
 
Google
rifers.org web