WOGenericElement and WOGenericContainer Attributes
|
|
Attribute
|
Description
|
elementName
|
The name of the HTML element you want to create. This attribute isn't new, but it has some changes. It is now optional. You can now bind this attribute to a variable instead of a constant string. You can also set the value of this attribute to nil or null, which effectively shuts this element off (that is, WebObjects doesn't generate HTML tags for this element).
|
formValue
|
Bind this attribute to a variable that should contain the component's input value. If this attribute is specified, WebObjects extracts the form value with the key matching this component's element ID from the request and assigns it to the variable bound to this attribute. If the request has no form value for this element, the variable isn't set.
|
formValues
|
Same as formValue, but should be bound to an array variable. Use this attribute if the element should receive more than one input value. (For example, a WOBrowser with multiple selections enabled could receive more than one input value.)
|
invokeAction
|
The action to be invoked. Use this attribute to simulate elements like WOHyperlink, WOSubmitButton, and so on, that define an action.
|
omitTags
|
If YES, WebObjects doesn't generate HTML tags for this element. This attribute allows you to define an element that conditionally wraps HTML in a container tag. For example, if the elementName attribute is bound to the string "B" and the omitTags attribute is bound to a boolean variable, you can use that boolean variable to set whether this element generates the bold tag or not. (The body contained in the element is generated regardless of this setting.)
|
elementID
|
Bind this attribute to a variable if you want to obtain programmatic access to the element ID for this element.
|