code: @Override
  	protected void preparePaintComponent(final Request request) {
  		super.preparePaintComponent(request);
  		if (getState() == ACTIVE_STATE) {
  			// Can only remain active if it is AJAX targetted
  			if (!isAjaxTargeted()) {
  				getOrCreateComponentModel().state = INACTIVE_STATE;
  			}
  		} else if (getState() == MANUAL_OPEN_STATE) {
  			getOrCreateComponentModel().state = ACTIVE_STATE;
  		}
  		if (getContent() != null) {
  			AjaxHelper.registerContainer(getId(), getId(), getContent().getId());
  		}
  	}
docs: {@inheritDoc}