The skeleton renderer class for the photograph widget is shown below. The class extends the same base class as the e-mail address widget, as it too is a view renderer. The class should be created in the component/sample/javasource/sample folder.
public class PhotoViewRenderer
extends AbstractViewRenderer {
public void render(
Field field, DocumentFragment fragment,
RendererContext context, RendererContract contract)
throws ClientException, DataAccessException {
// Add the HTML to the "fragment" object here....
}
}