title: Use XSP.partialRefreshPost function in XPages Extension Library dialog
body: <p>In a xe:dialog (XPages Extension Library dialog), I want to use XSP.partialRefreshPost function, but when refreshing the entered values are lost.</p>
  
  <p>The following example demonstrate the problem.</p>
  
  <ul>
  <li>ComboBox1, inputText1, ComboBox2, inputText2 : OK but not in a xe:dialog</li>
  <li>ComboBox3, inputText3 : OK but not use XSP.partialRefreshPost</li>
  <li>ComboBox4, inputText4 : <strong>NOK</strong> because it uses XSP.partialRefreshPost function in xe:dialog</li>
  </ul>
  
  <p>I try to change the properties xe:dialog without success.</p>
  
  <p>How to use XSP.partialRefreshPost in a xe:dialog to have refresh OK ?</p>
  
  <p>Thanks</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex"&gt;
      &lt;xp:label id="label1" value="refresh partial"&gt;&lt;/xp:label&gt;
      &lt;xp:comboBox id="comboBox1"&gt;
          &lt;xp:selectItems&gt;
              &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:return ["1", "2", "3"];}]]&gt;&lt;/xp:this.value&gt;
          &lt;/xp:selectItems&gt;
          &lt;xp:eventHandler event="onchange" submit="true" refreshMode="partial"refreshId="comboBox1"&gt;
          &lt;/xp:eventHandler&gt;
      &lt;/xp:comboBox&gt;
      &lt;xp:inputText id="inputText1"&gt;
          &lt;xp:eventHandler event="onchange" submit="true" refreshMode="partial" refreshId="inputText1"&gt;
          &lt;/xp:eventHandler&gt;
      &lt;/xp:inputText&gt;
      &lt;xp:br&gt;&lt;/xp:br&gt;
      &lt;xp:label id="label2" value="refresh XSP.partialRefreshPost"&gt;&lt;/xp:label&gt;
      &lt;xp:comboBox id="comboBox2"&gt;
          &lt;xp:selectItems&gt;
              &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:return ["1", "2", "3"];}]]&gt;&lt;/xp:this.value&gt;
          &lt;/xp:selectItems&gt;
          &lt;xp:eventHandler event="onchange" submit="false"&gt;
              &lt;xp:this.script&gt;&lt;![CDATA[XSP.partialRefreshPost("#{id:comboBox2}", {immediate: true});]]&gt;&lt;/xp:this.script&gt;
    &lt;/xp:eventHandler&gt;
      &lt;/xp:comboBox&gt;
      &lt;xp:inputText id="inputText2"&gt;
          &lt;xp:eventHandler event="onchange" submit="false"&gt;
              &lt;xp:this.script&gt;&lt;![CDATA[XSP.partialRefreshPost("#{id:inputText2}", {immediate: true});]]&gt;&lt;/xp:this.script&gt;
          &lt;/xp:eventHandler&gt;
      &lt;/xp:inputText&gt;
      &lt;xp:br&gt;&lt;/xp:br&gt;
      &lt;xe:dialog id="dialog1" partialRefresh="true"&gt;
          &lt;xp:label id="label3" value="refresh partial"&gt;&lt;/xp:label&gt;
          &lt;xp:comboBox id="comboBox3"&gt;
              &lt;xp:selectItems&gt;
                  &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:return ["1", "2", "3"];}]]&gt;&lt;/xp:this.value&gt;
              &lt;/xp:selectItems&gt;
              &lt;xp:eventHandler event="onchange" submit="true"
                  refreshMode="partial" refreshId="comboBox3"&gt;
              &lt;/xp:eventHandler&gt;
          &lt;/xp:comboBox&gt;
          &lt;xp:inputText id="inputText3"&gt;
              &lt;xp:eventHandler event="onchange" submit="true"
                   refreshMode="partial" refreshId="inputText3"&gt;
              &lt;/xp:eventHandler&gt;
          &lt;/xp:inputText&gt;
          &lt;xp:br&gt;&lt;/xp:br&gt;
          &lt;xp:label id="label4" value="refresh XSP.partialRefreshPost"&gt;&lt;/xp:label&gt;
          &lt;xp:comboBox id="comboBox4"&gt;
              &lt;xp:selectItems&gt;
                  &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:return ["1", "2", "3"];}]]&gt;&lt;/xp:this.value&gt;
              &lt;/xp:selectItems&gt;
              &lt;xp:eventHandler event="onchange" submit="false"&gt;
                  &lt;xp:this.script&gt;&lt;![CDATA[XSP.partialRefreshPost("#{id:comboBox4}", {immediate: true});]]&gt;&lt;/xp:this.script&gt;
              &lt;/xp:eventHandler&gt;
          &lt;/xp:comboBox&gt;
          &lt;xp:inputText id="inputText4"&gt;
              &lt;xp:eventHandler event="onchange" submit="false"&gt;
                  &lt;xp:this.script&gt;&lt;![CDATA[XSP.partialRefreshPost("#{id:inputText4}", {immediate: true});]]&gt;&lt;/xp:this.script&gt;
              &lt;/xp:eventHandler&gt;
          &lt;/xp:inputText&gt;
      &lt;/xe:dialog&gt;
      &lt;xp:button id="button1" value="dialog"&gt;
          &lt;xp:eventHandler event="onclick" submit="false"&gt;
              &lt;xp:this.script&gt;&lt;![CDATA[XSP.openDialog('#{id:dialog1}');]]&gt;&lt;/xp:this.script&gt;
          &lt;/xp:eventHandler&gt;
      &lt;/xp:button&gt;
  &lt;/xp:view&gt;
  </code></pre>