View Source Code

It’s always handy to take a peek at the source code for a class you’re using, to see how it works. Of course, every attribute, method and event should be documented in detail, but sometimes they’re not, and you need access to the source code. With OpenLaszlo Lz components (e.g. button, edittext, etc.), that’s pretty straightforward. You just look at your local developer install of OpenLaszlo, under lps/components/lz/….

With Laszlo Foundation Classes, such as view, the source code is not present in the developer distribution. So unless you have an OpenLaszlo build environment, you won’t find it in your file system.

All is not lost, however, since the OpenLaszlo project uses Subversion for source control. That means that you can browse the source code via the web interface:

http://svn.openlaszlo.org/openlaszlo/

The very latest view code (from trunk) is located here. And the view code from OpenLaszlo 3.4 is located here. The Laszlo Foundation Class code is generally found in WEB-INF/lps/lfc/… of that particular version.

Leave a Reply

Your email address will not be published. Required fields are marked *