code: protected AjaxButton newOkButton(final String id)
  	{
  		final AjaxButton ok = new AjaxButton(id)
  		{
  			/**
  			 * The serialVersionUID.
  			 */
  			private static final long serialVersionUID = 1L;
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected void onError(final AjaxRequestTarget target, final Form<?> form)
  			{
  				final T obj = BaseModalPanel.this.getModelObject();
  				onSelect(target, obj);
  			}
  
  			/**
  			 * {@inheritDoc}
  			 */
  			@Override
  			protected void onSubmit(final AjaxRequestTarget target, final Form<?> form)
  			{
  				final T obj = BaseModalPanel.this.getModelObject();
  				onSelect(target, obj);
  			}
  		};
  		return ok;
  	}
docs: Factory method for creating the new ok {@link AjaxButton}. This method is invoked in the
  constructor from the derived classes and can be overridden so users can provide their own
  version of a new ok {@link AjaxButton}.
  
  @param id
  the id
  @return the new ok {@link AjaxButton}