OLView 09132010


An OpenLaszlo application can be packaged up as a standalone "SOLO"
format for deployment and distribution. OpenLaszlo now generates these
solo packages in a new standard from the W3C called "Widgets"
[1]. From the W3C standard:

Widgets are client-side applications that are authored using Web
standards, but whose content can also be embedded into Web
documents. The specification relies on PKWare's Zip specification as
the archive format, XML as a configuration document format, and a
series of steps that runtimes follow when processing and verifying
various aspects of a package. The packaging format acts as a container
for files used by a widget. The configuration document is an XML
vocabulary that declares metadata and configuration parameters for a

The developers console has a "SOLO" button, which now generates a zip
archive in the W3C .wgt format. The widget packaging requires a
config.xml file, which is not yet standardized across different
browsers and runtimes, so we provide a choice of config file formats,
based on templates [2]. Currently Android and Opera formats are supported,
but it is easy to add another XML template file if needed, by
specifying the 'widgettype' query arg to the SOLO deployment servlet.

There is also a new "Widget Emulator" button:

This is an extension of the SOLO deploy feature. The application is packaged up as a .wgt
archive, and then extracted to a temporary working directory on the
server, and the browser is redirected to it. This makes a simple
one-step way to test changes to your widget deployment, and works with
Opera or with the Ripple [3] widget emulator in Chrome.


[1] http://www.w3.org/TR/widgets/

[2] Widget config.xml templates are located in: lps/admin/widget-templates

[3] http://ripple.tinyhippos.com/