PATH |
WOGenericContainer supports development of reusable components that closely model the behavior of common HTML elements. For example, along with WOComponentContent, you can use WOGenericContainer to implement your own hyperlink element as a reusable component. WOGenericContainer has attributes that support the takeValues... and invokeAction... phases of the component-action request/response loop.
TEXTAREA
")
will be used to generate the container's opening and closing tags
(<TEXTAREA>...</TEXTAREA>
). elementName can
either be a constant or a variable, such as a key path. You can
also set the value of this attribute to nil
or null
,
which effectively shuts off this element (that is, WebObjects doesn't
generate HTML tags for this element). Alternatively, you can use
the omitTags attribute to achieve the same effect.false
(or NO
.)
If omitTags is true
(or YES
),
the contents of the tag are rendered but not the tags themselves.
Using omitTags for a container makes the
container itself optional.takeValues...
phase,
if the element ID of the current generic container matches an element ID
of a form value in the request, the form value is pushed into the
component using this attribute. The formValue attribute
corresponds to WORequest's formValueForKey: while
the formValues atribute corresponds to WORequest's formValuesForKey: method;
in other words, formValue pushes a single
attribute while formValues pushes an array
of attributes.