Table of Contents Previous Section 

Generic WebObjects

You can use the generic WebObject element to create a dynamic version of any HTML element.

To create a dynamic version of a standard HTML element):

 

  1. Create the element (say, a heading). 
  2. In the Inspector, click Make Dynamic. 
  3. If the element has no specific dynamic counterpart, it becomes a generic WebObject element.

     

To create a generic WebObject corresponding to any HTML element (even ones not supported by WebObjects Builder):

 

  1. Click  in the toolbar. 
  2. Bring up the Inspector. 
  3. 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:

     

  4. Type BLOB between the quotes in the Binding column. 
  5. 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.

     

  6. Check "Element is container". 
  7. Use the Add Attribute button to specify any additional properties of the element.
Table of Contents Next Section