2009 | OriginalPaper | Chapter
Lift Widgets
Authors : Derek Chen-Becker, Marius Danciu, Tyler Weir
Published in: The Definitive Guide to Lift
Publisher: Apress
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
In this chapter, we’re going to discuss widgets in Lift. A widget is essentially a library of Scala and JavaScript code that together provide packaged XHTML fragments for display on the client browser. In other web frameworks (JavaServer Faces, Struts, etc.), these are sometimes called components. An example of a widget would be small library that automatically embeds a Calendar instance (see the “Using Calendar Widgets” section), or a helper library to sort HTML tables (see the “Using the TableSorter Widget” section). Typically, widgets embody dynamic behavior on the client side, which is what makes them so attractive; static client-side content is already dead simple to generate in Lift with snippets, so the extra sauce of JavaScript binding and AJAX callbacks really makes advanced functionality easy.