Defining the Renderer Class

The NoAutoCompleteEditRenderer class is defined in much the same way as the EMailAddressViewRenderer class, except that the base class is AbstractEditRenderer instead of AbstractViewRenderer. The render method is the same, as it is defined by the DomainRenderer interface that is shared by both abstract base classes.

Figure 1. Declaration of the NoAutoCompleteEditRenderer Class
public class NoAutoCompleteEditRenderer
       extends AbstractEditRenderer {

  public void render(
        Field field, DocumentFragment fragment,
        RendererContext context, RendererContract contract)
        throws ClientException, DataAccessException,
               PlugInException {
    // Create the HTML here....
  }
}