title: rich:popupPanel submits value on .hide() , which i dont want
body: <p>I'm having trouble with canceling the changes done with CKeditor in richfaces 4.</p>
  
  <p>In short:</p>
  
  <pre><code>&lt;form&gt;
    ...
    &lt;rich:popupPanel&gt;
       &lt;rich:editor id="#{popupID}" value="#{managedBean.value}" /&gt;
       &lt;a4j:commandButton value="Annuleer" onclick="#{rich:component(popupID)}.hide();" /&gt;
       &lt;a4j:commandButton value="Ok" onclick="saveEditorData();" /&gt;
    &lt;/rich:popupPanel&gt;
    ...
  &lt;/form&gt;
  </code></pre>
  
  <p>When i press the [Cancel] ("Annuleer") button, it closes the popuppanel and 'submits' the value to the bean. When pressing [Cancel] I dont want it to submit the value. I have the feeling I am missing something very simple yet crucial to make this work. </p>
  
  <p>How can i make the [Cancel] Button work as intended?</p>
  
  <p>The full code:</p>
  
  <pre><code>&lt;rich:popupPanel
   id="#{popupID}"
   modal="true"
   autosized="true"
   resizeable="false"
   styleClass="popup-panel"
   style="z-index:202;"
   left="300"
   domElementAttachment="parent"&gt;
   &lt;f:facet name="header"&gt;
      &lt;h:outputText value="Text Editor " /&gt;
   &lt;/f:facet&gt;
   &lt;f:facet name="controls"&gt;
      &lt;a4j:commandButton
      value="X"
      type="reset"
      id="popupAfsluiten"
      render="#{panelID}"
      styleClass="btn-afsl"
      onclick="showLoadingOverlay();#{rich:component(popupID)}.hide();"
      oncomplete="cleanOverlay();setFocus('#{rich:clientId(inputID)}');return false;"/&gt;
   &lt;/f:facet&gt;
   &lt;rich:panel id="#{cc.attrs.id}TextPanel"&gt;
       &lt;rich:editor id="textEditor" lang="nl" value="#{cc.attrs.managedBean.formField(cc.attrs.id).value}" toolbar="CustomToolbar"&gt;
          &lt;f:facet name="config"&gt;
              toolbar_CustomToolbar:
                  [
                      { name: 'document', items: [ 'Save', 'NewPage', 'Preview', 'Print'] },
                      { name: 'clipboard', items : [ 'Cut','Copy','PasteText','-','Undo','Redo' ] },
                      { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','Scayt' ] },
                      { name: 'tools', items : [ 'Maximize' ] }
                  ],
              language: 'nl',
              defaultLanguage : 'nl',
              scayt_sLang : 'nl_NL',
              startupFocus: true,
              pasteFromWordPromptCleanup : true,
              pasteFromWordRemoveFontStyles : true,
              forcePasteAsPlainText : true,
              ignoreEmptyParagraph : true,
              removeFormatAttributes : true,
              removePlugins : 'elementspath',
              tabSpaces : 4,
              autoParagraph : false,
              autoUpdateElement : false,
              enterMode: Number(2)
          &lt;/f:facet&gt;
      &lt;/rich:editor&gt;
      &lt;a4j:commandButton
      value="Annuleer"
      type="reset"
      id="editorCancel"
      render="#{panelID}"
      styleClass="btn-ja"
      onclick="showLoadingOverlay();#{rich:component(popupID)}.hide();"
      oncomplete="cleanOverlay();setFocus('#{rich:clientId(inputID)}');return false;"/&gt;
  
      &lt;a4j:commandButton
          value="Ok"
          type="submit"
          styleClass="btn-ja"
          id="#{inputID}Save"
          render="#{inputID}"
          onclick="saveEditorData();"
          oncomplete="setTime();" /&gt;
          &lt;h:outputText escape="false" value="Opgeslagen om: " /&gt;
          &lt;h:outputText escape="false" value="#{editorBean.value}" id="saveTimeOutput"/&gt;
       &lt;/rich:panel&gt;
    &lt;/rich:popupPanel&gt;
  </code></pre>