Apple WebObjects 3.5 Tools And Techniques User Manual

Page 83

Advertising
background image

Creating Other WebObjects

83

1. Click

in the toolbar.

2. Bring up the Inspector.

A generic WebObject element has one required attribute,

elementName

,

which specifies what type of element should be generated at run time.

For example, imagine that a future version of HTML adds a container
element called

<BLOB>

, which you would like to generate dynamically

in your component. You would:

3. Type

BLOB

between the quotes in the Binding column.

If the name isn’t in quotes, WebObjects assumes it is a binding that
should be resolved at run time. You might use that technique if you
wanted to choose the type of element programmatically rather than
specifying it in advance.

4. Check “Element is container”.

5. Use the Add Attribute button to specify any additional properties of the

element.

Enter the element name here.

Click to add attributes.

Advertising