title: xp:viewPanel - Leading and closing empty table row
body: <p>I have the following simple xpage with a xp:viewPanel :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"&gt;
  &lt;xp:viewPanel rows="30" id="viewPanel1" disableTheme="true"&gt;
      &lt;xp:this.data&gt;
          &lt;xp:dominoView var="view1" viewName="testView"&gt;&lt;/xp:dominoView&gt;
      &lt;/xp:this.data&gt;
      &lt;xp:viewColumn columnName="$0" id="viewColumn1"&gt;
          &lt;xp:viewColumnHeader value="Col 1" id="viewColumnHeader1"&gt;&lt;/xp:viewColumnHeader&gt;
      &lt;/xp:viewColumn&gt;
  &lt;/xp:viewPanel&gt;
  &lt;/xp:view&gt;
  </code></pre>
  
  <p>Although pagers are disabled for header and footer, the generated HTML has always a leading an closing empty row around the view data:</p>
  
  <pre><code>&lt;table id="view:_id1:viewPanel1_OUTER_TABLE" cellspacing="0" cellpadding="0"&gt;
  
   &lt;tr&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;/tr&gt;
  
   &lt;tr&gt;
    &lt;td colspan="3" style="padding:0px" width="100%" height="100%" valign="top"&gt;
       &lt;table id="view:_id1:viewPanel1"&gt;
         &lt;thead&gt;
           &lt;tr&gt;
             &lt;th scope="col"&gt;
               &lt;div&gt;&lt;span&gt;&lt;span id="view:_id1:viewPanel1:viewColumn1:__internal_header_title_id"&gt;Col 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;         
             &lt;/th&gt;
           &lt;/tr&gt;
         &lt;/thead&gt;
         &lt;tbody&gt;
          &lt;tr&gt;
           &lt;td&gt;
            &lt;span id="view:_id1:viewPanel1:0:viewColumn1:_internalViewText"&gt;&amp;nbsp;&lt;/span&gt;         
           &lt;/td&gt;
          &lt;/tr&gt;
         &lt;/tbody&gt;
       &lt;/table&gt;
  
    &lt;/td&gt;
   &lt;/tr&gt;
  
   &lt;tr&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;/tr&gt;
  
  &lt;/table&gt;
  </code></pre>
  
  <p>What can I do to hide/ delete this empty rows?</p>
  
  <p>I already added an empty theme and used it in the test database, but that did not help:</p>
  
  <pre><code>&lt;theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd"&gt;
  &lt;/theme&gt;
  </code></pre>
  
  <p>I am using Domino Domino 8.5.3 Upgrade Pack 1</p>
  
  <p>Thx in advance
  Daniel</p>
  
  <hr>
  
  <p>Edit 04/24/2012 :</p>
  
  <p>Thanks to Ulrich Krause, his answer gave me the right direction and I ended up in writing my own theme extension.</p>
  
  <pre><code>&lt;theme extends="webstandard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd"&gt;
  
    &lt;!-- ================== View Table with no footer and header ================================ --&gt;
      &lt;!-- View DataTable - copied from webstandard theme and customized  (Notes\xsp\nsf\themes)--&gt;
      &lt;control &gt;
              &lt;name&gt;DataTable.ViewPanelNoHeaderFooter&lt;/name&gt;
              &lt;property&gt;
                      &lt;name&gt;headerEndStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;
              &lt;property&gt;
                      &lt;name&gt;headerStartStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;           
              &lt;property&gt;
                      &lt;name&gt;headerStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;
  
  
              &lt;property&gt;
                      &lt;name&gt;footerStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;
              &lt;property&gt;
                      &lt;name&gt;footerStartStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;           
              &lt;property&gt;
                      &lt;name&gt;footerEndStyle&lt;/name&gt;
                      &lt;value&gt;display: none;&lt;/value&gt;
              &lt;/property&gt;
      &lt;/control&gt;
  &lt;/theme&gt;
  </code></pre>
  
  <p>With that theme extension i can set the theme id for my xp:viewPanel to "DataTable.ViewPanelNoHeaderFooter" where needed and the header and footer row are hidden.</p>
  
  <pre><code>&lt;xp:viewPanel rows="30" id="viewPanel1" 
      themeId="DataTable.ViewPanelNoHeaderFooter"&gt;
      &lt;xp:this.data&gt;
          &lt;xp:dominoView var="view1" viewName="testView"&gt;&lt;/xp:dominoView&gt;
      &lt;/xp:this.data&gt;
      &lt;xp:viewColumn columnName="$0" id="viewColumn1"&gt;
          &lt;xp:viewColumnHeader value="Col 1" id="viewColumnHeader1"&gt;
          &lt;/xp:viewColumnHeader&gt;
      &lt;/xp:viewColumn&gt;
  
  &lt;/xp:viewPanel&gt;
  </code></pre>