Displaying data sets with HtmlDataTable

All of the components we've covered so far are relatively simple they output a string, collect data, allow the user to select an item from a list, or submit a form. If there's one complex requisite standard component for any UI framework, it's a data grid. For desktop applications, you'll find several variations on this theme, regardless of whether you're developing in Swing, .NET, or Delphi. The same is 1 You may be wondering why the hidden field's value is set in the event handler instead of...

The Inbox page

The first thing most ProjectTrack users will see is the Inbox. Upper Managers will see the Show All page instead, and won't be able to access this page at all. The Inbox is the page that shows all of the projects waiting for processing, and it's the one that users will typically interact with the most. Users can view details, approve, or reject any projects on this page. A mock-up is depicted in figure 9.3. As you can see in figure 9.3, this view has a page header and a panel that contains the...

Starting with HtmlGraphicImage and HtmlOutputText components

We'll begin by creating a basic page that just has the graphic and the text ProjectTrack in a large font, as shown in figure 8.3. The JSP is shown in listing 8.3. Listing 8.3 The JSP source for the Login page with only a graphic and the text Project Track lt DOCTYPE HTML PUBLIC - W3C DTD HTML 4.01 Transitional EN gt lt taglib prefix f gt lt taglib prefix h gt lt f view gt lt d View tag that lt html gt encloses all lt h outputText value MProjectTrackM gt lt Q HtmlOutputText lt title gt component...

Using singleselect listboxes with HtmlSelectOneListbox

HtmlSelectManyListbox displays its child items within a listbox control with a configurable size and is displayed as a lt select gt element. This is useful for displaying very large lists you only have to display a few items at a time. Table 5.24 summarizes this component. Table 5.24 HtmlSelectOneListbox summary Table 5.24 HtmlSelectOneListbox summary Displays a lt select gt element with the size attribute set to the value of the size property. All of its items configured by child UISelectItem...

Using HtmlSelectOneRadio for radio button groups

HtmlSelectOneRadio displays all of the child items as a set of radio buttons, so the user can select only one item at a time. It is rendered as a lt table gt element with several lt input gt elements of type radio. This component is summarized in table 5.22. You can see from the table that using HtmlSelectOneRadio is almost identical to using HtmlSelectManyCheckbox. The only difference, other than the purpose selecting a single item as opposed to multiple items , is that HtmlSelectOneRadio...

Using the input and data table components

5.1 Registering event listeners 186 Declaring value-change listeners 187 Declaring action listeners 187 5.2 Common component properties 189 5.3 Handling forms with HtmlForm 190 5.4 Handling basic user input 192 Declaring basic text fields with HtmllnputText 193 Using HtmllnputTextarea for memo fields 194 Displaying password fields with HtmllnputSecret 195 Declaring hidden fields with HtmllnputHidden 197 5.5 Using HtmlSelectBooleanCheckbox Using UISelectItem for single items 200 Using...

RenderKit

A RenderKit represents a collection of Renderer instances, keyed by their type. All of the Renderers within a particular RenderKit instance are usually related in some way. For example, the default RenderKit has Renderer instances that only know how to output HTML. Other render kits may display different dialects of HTML perhaps DHTML with lots of JavaScript , or some other type of markup altogether, like SVG. Render kits can also be used to provide different skins that use the same type of...