Skip to Content
WebObjects® Developer's Guide
book

WebObjects® Developer's Guide

by Ravi Mendis
June 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
7h 48m
English
Sams
Content preview from WebObjects® Developer's Guide

Defining the Component API

In this section we'll extract the WebObjects elements and functionality that make up the WORollover component. At the same time, we'll get our first introduction to Variable Synchronization between WebObjects components.

Making the Component Reusable

To make a component reusable we need to make it generic. But before we start to discuss this any further, factor out the WebObjects elements that comprise a WORollover component.

Create a new component called WORollover. From the WebObjects Builder cut the WebObjects elements that make up the rollover from the Main component and paste it into the WORollover component. Remember to set the component as a Partial Document.

In addition, copy over the three variable keys highlightedImage ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Real World XML

Real World XML

Steven Holzner
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0672323265Purchase book