Implementing a WebObjects XHTML Element

What remains to be converted are the <img> and the text <input> elements. Unfortunately, just to add a / before the closing > requires us to re-create XHTML components for them. We'll start with prototyping the XHTML <img> element.

Prototyping Basic XHTML Elements

As usual, we are going to develop the WXImage in isolation. So create a development project WXImageTest. Add a new component WXImage and make it a partial document.

NOTE

There is an example framework called WOComponentElements, which does use the WX prefix. Do not confuse these WX elements with those WebObjects example components.

To prototype WXImage, we are going to use WOXMLNode instead of WOGenericElement as we did before. WOXMLNode terminates ...

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.