Implementing a WebObjects Dynamic Element

Finally, we get a chance to reimplement one of these XHTML components as a dynamic element. For this purpose we shall choose to reimplement WXImage.

First, a brief introduction to dynamic elements and how they differ from WebObjects components. They really are quite different, as we will soon discover.

Introduction to Dynamic Elements

A WebObjects Dynamic Element represents the smallest atom of the component architecture. They are lightweight objects that represent an HTML or XML element such as <img>, <body>, <a>, and <input>. As such, they lack many of the features available to WebObjects components.

You only need to implement anything as a dynamic element only on very rare occasions. One is when you ...

Get WebObjects® Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.