Chapter 16.2.2. Form Field Widgets

As we’ve already seen, TurboGears provides a number of interesting widgets for use in your forms. The basics are definitely covered with a matching widget for each of the HTML form element types. But, as we just saw, there are a few extra form filed widgets, which TurboGears provides to make creating dynamic web applications easier.

  • AutoComplete— provides a list of possible selections that is dynamically updated as you type. The list of possible selections is provided by a search controller method that returns a JSONified list to the page. We’ll explore this widget in more detail in section 16.7, “Anatomy of an Ajax Widget.”

  • Button— renders a generic button. It serves as a superclass for the SubmitButton, ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.