Skip to main content

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics