Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2009 Derek Chen-Becker, Marius Danciu, and Tyler Weir
About this chapter
Cite this chapter
Chen-Becker, D., Danciu, M., Weir, T. (2009). Lift Widgets. In: The Definitive Guide to Lift. Apress. https://doi.org/10.1007/978-1-4302-2422-8_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2422-8_12
Publisher Name: Apress
Print ISBN: 978-1-4302-2421-1
Online ISBN: 978-1-4302-2422-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books