Main Menu
Lecture 2
Lecture 3
Lecture 4
Lecture 5
Lecture 6
Lecture 7
 

 

 

WebObjects Concepts

Dynamic elements are associated with dynamic data

Dynamic elements are represented in the HTML by <WEBOBJECTS> tags

Components generate HTML from templates of static HTML

+ fill in HTML in place of dynamic elements

Each component can have keys - its own variables and/or methods

Keys can provide instances of simple value classes: strings, number, etc

or of more complex classes: customer with instance variables

Variables and methods are declared in Java in the component class

You add variables by

  1. editing the Java text of the class in Project Builder, or
  2. graphically editing in WO Builder

Variables are bound to WO dynamic data components - e.g. text display field

Actions are Java methods that perform a desired function

You bind actions to WO dynmamic components - e.g. submit button