title: Opening a Bootstrap modal (dialog) from a repeat control
body: <p>I have some problems with calling the bootstrap control from a repeat control.</p>
  
  <p>Before showing the dialog I want to set some viewscope variables to update the dialog with new content, based upon the row I call the dialog from.</p>
  
  <p>Here are three buttons I have tried:</p>
  
  <pre><code>              &lt;button type="button" class="btn btn-info" data-toggle="modal" data-target="#myModal"&gt;Open 1&lt;/button&gt;
                &lt;xp:button value="Open 2" id="button1"
                    styleClass="btn btn-info"&gt;
                    &lt;xp:this.attrs&gt;
                        &lt;xp:attr name="data-toggle" value="modal"&gt;&lt;/xp:attr&gt;
                        &lt;xp:attr name="data-target"
                            value="#myModal"&gt;
                        &lt;/xp:attr&gt;
                    &lt;/xp:this.attrs&gt;
                    &lt;xp:eventHandler event="onclick" submit="true"
                        refreshMode="partial" refreshId="dialog" execMode="partial" immediate="true"&gt;
                    &lt;/xp:eventHandler&gt;&lt;/xp:button&gt;
                &lt;xp:link escape="true" text="Open 3" id="link1" styleClass="btn btn-info"&gt;
                &lt;xp:this.attrs&gt;
                        &lt;xp:attr name="data-toggle" value="modal"&gt;&lt;/xp:attr&gt;
                        &lt;xp:attr name="data-target"
                            value="#myModal"&gt;
                        &lt;/xp:attr&gt;
                    &lt;/xp:this.attrs&gt;                      
                &lt;/xp:link&gt;
  </code></pre>
  
  <p>The first button is the "normal" html to open the dialog.</p>
  
  <p>Button 2 uses an xp:button and a partial refresh.</p>
  
  <p>Button 3 is a xp:link without a partial refresh.</p>
  
  <p>Button 1 and 3 show the dialog modal. Button 2 only displays the freeze/tinted page.</p>
  
  <p>So it seems the partial refresh is the show blocker, which I seem to need to update the content in the modal before showing it.</p>
  
  <p>Is there another way to establish update and open the modal from a repeat control?</p>