beautypg.com

Optional exercise, Optional exercise 90 – Apple WebObjects 3.5 User Manual

Page 90

background image

Chapter 3

Creating a WebObjects Database Application

90

Optional Exercise

You can tidy up the user interface even further by putting the query part of the
page in a table to match the editing part of the page. Also, you should consider
capitalizing

Main.wo

’s text field labels.

To put the query part of the page in a table, follow these steps:

1. Put the cursor inside the form element before the “title” text field.

2. In the Tables toolbar, click the

button to add a table.

A table with two rows and two columns appears. Initially the table spans
the entire width of the page. You’ll resize it later.

When the table is first added, it’s in structure-editing mode. You can tell it’s
in structure-editing mode because it has

buttons for adding rows and

columns and because it has

and

icons around each of the table’s

rows.

3. Inspect the new table.

Click to add a table at
the insertion point.

Click to add a new row
of cells to the table.

Click to inspect the
table itself.

Type 0 to make the
table borderless.

Select to make the
table resize to fit its
contents.

Click to toggle the table
between structure-editing
and content-editing modes.