Dynamic and static inspectors – Apple WebObjects 3.5 Tools And Techniques User Manual

Page 73

Advertising
background image

Dynamic and Static Inspectors

73

WOForm itself, don’t receive information but contain an

action

attribute

representing an action to be taken when the form is submitted. You bind
form-based elements by the process described in “Binding Elements”.

Tip:

HTML forms don’t allow you to have multiple submit buttons in a

single form, but the WebObjects WOForm element does. If you want
multiple submit buttons in a form, bind the

multiplesubmit

attribute of

WOForm to the value

YES

(by typing it in the Inspector).

Dynamic and Static Inspectors

Most dynamic elements have static HTML counterparts. (The exceptions
are the abstract dynamic elements: WOString, WORepetition,
WOConditional, and WOCustom.) The Inspector for these elements has
two states:

The Dynamic Inspector, which you use to set the bindings for the
element (see “Binding Elements”).

The Static Inspector, which you use to set the HTML attributes for the
element’s static counterpart.

This example shows the Inspector for a dynamic text area element. It
displays the bindable attributes for this element. If you select Static
Inspector from the pop-up list, the Text Area Inspector appears. This is the
same Inspector you would see for a static text area element (

<TEXTAREA>

)

and allows you to set its HTML attributes (such as

COLS

or

ROWS

).

Click here to convert
WOText to a static text
area.
Select Static Inspector to
edit HTML attributes.

Set bindings for the
WOText element here.

Advertising