我有以下简单的xpage和xp:viewPanel:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:viewPanel rows="30" id="viewPanel1" disableTheme="true">
<xp:this.data>
<xp:dominoView var="view1" viewName="testView"></xp:dominoView>
</xp:this.data>
<xp:viewColumn columnName="$0" id="viewColumn1">
<xp:viewColumnHeader value="Col 1" id="viewColumnHeader1"></xp:viewColumnHeader>
</xp:viewColumn>
</xp:viewPanel>
</xp:view>
虽然页眉和页脚的页面调整器已被禁用,但生成的HTML始终是视图数据周围的前端空行:
<table id="view:_id1:viewPanel1_OUTER_TABLE" cellspacing="0" cellpadding="0">
<tr>
<td> </td><td> </td><td> </td>
</tr>
<tr>
<td colspan="3" style="padding:0px" width="100%" height="100%" valign="top">
<table id="view:_id1:viewPanel1">
<thead>
<tr>
<th scope="col">
<div><span><span id="view:_id1:viewPanel1:viewColumn1:__internal_header_title_id">Col 1</span></span></div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span id="view:_id1:viewPanel1:0:viewColumn1:_internalViewText"> </span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td> </td><td> </td><td> </td>
</tr>
</table>
我该怎么做才能隐藏/删除这些空行?
我已经添加了一个空主题并在测试数据库中使用它,但这没有帮助:
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">
</theme>
我正在使用Domino Domino 8.5.3升级包1
提前谢谢 丹尼尔编辑04/24/2012:
感谢Ulrich Krause,他的回答给了我正确的方向,最后我写了自己的主题扩展。
<theme extends="webstandard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">
<!-- ================== View Table with no footer and header ================================ -->
<!-- View DataTable - copied from webstandard theme and customized (Notes\xsp\nsf\themes)-->
<control >
<name>DataTable.ViewPanelNoHeaderFooter</name>
<property>
<name>headerEndStyle</name>
<value>display: none;</value>
</property>
<property>
<name>headerStartStyle</name>
<value>display: none;</value>
</property>
<property>
<name>headerStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerStartStyle</name>
<value>display: none;</value>
</property>
<property>
<name>footerEndStyle</name>
<value>display: none;</value>
</property>
</control>
</theme>
使用该主题扩展,我可以将我的xp:viewPanel的主题ID设置为“DataTable.ViewPanelNoHeaderFooter”,并在页面和页脚行中隐藏。
<xp:viewPanel rows="30" id="viewPanel1"
themeId="DataTable.ViewPanelNoHeaderFooter">
<xp:this.data>
<xp:dominoView var="view1" viewName="testView"></xp:dominoView>
</xp:this.data>
<xp:viewColumn columnName="$0" id="viewColumn1">
<xp:viewColumnHeader value="Col 1" id="viewColumnHeader1">
</xp:viewColumnHeader>
</xp:viewColumn>
</xp:viewPanel>
答案 0 :(得分:2)
我正在使用一个主题。它将空的.xspDataTableViewPanelHeaderStart等设置为display:none。 用萤火虫检查以找到元素。会发布解决方案,但目前只有智能手机。
答案 1 :(得分:0)
尝试使用disableTheme =“true”作为寻呼机的属性,看看是否删除了代码。
<xp:pager partialRefresh="true" layout="Previous Group Next"
xp:key="headerPager" id="pager1" disableTheme="true">
</xp:pager>