Split rendering functionality from attributeTypes() defined in model. Add renderAttribute() instead of renderField(). Change renderField() arguments order.