Using the add webobject panel – Apple WebObjects 3.5 Tools And Techniques User Manual

Page 57

Advertising
background image

Creating Dynamic Elements

57

In addition, you can also drag a model file (of type

.eomodeld

) into a

component to create a variable of type WODisplayGroup (see “Adding
Display Groups”).

Certain file types (such as

.gif

,

.jpeg

,

.tif

,

.eps

, and

.bmp

) are automatically

recognized by WebObjects Builder. The Preferences Panel (which you
display by choosing Tools

m

Options) shows a list of file extensions that

WebObjects Builder accepts. You can drag any item with one of those file
extensions into a component window, and the item will be added to your
project. You can add file types if you need them.

Using the Add WebObject Panel

The Add WebObject panel is an advanced feature for those who wish to
work in source editing mode. It allows you to add a dynamic element and
set its bindings by hand.

1. In source editing mode, place the cursor at the point in the HTML

template where you want to add the element.

2. Choose Tools

m

Add WebObject.

A panel appears that allows you to create a dynamic element by
entering its class and its name. The name is used by the HTML
template and declarations (

.wod

) file to uniquely identify the element.

(Normally, you allow WebObjects Builder to generate names for you,
but if you add elements in source editing mode, you must specify their
names.)

3. Click Add.

Click here to add or
remove extensions that
WebObjects Builder
recognizes.

If you’ve changed your
document root, click here
to inform WebObjects
Builder.

Advertising