Xpages xp:viewPanel-引导和关闭空表行
我有以下带有xp:viewPanel的简单xpage:Xpages xp:viewPanel-引导和关闭空表行,xpages,Xpages,我有以下带有xp:viewPanel的简单xpage: <?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=
<?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>
第1列
如何隐藏/删除此空行
我已经添加了一个空主题,并在测试数据库中使用它,但这没有帮助:
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">
</theme>
我正在使用Domino8.5.3升级包1
提前Thx
丹尼尔
2012年4月24日编辑: 多亏了乌尔里希·克劳斯,他的回答给了我正确的方向,我最终写下了自己的主题扩展
<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>
DataTable.ViewPanelNoHeaderFooter
头部样式
显示:无;
头型
显示:无;
头式
显示:无;
页脚样式
显示:无;
页脚开始样式
显示:无;
页脚样式
显示:无;
通过该主题扩展,我可以在需要的地方将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>
尝试使用disableTheme=“true”作为寻呼机的属性,看看这是否会消除代码
<xp:pager partialRefresh="true" layout="Previous Group Next"
xp:key="headerPager" id="pager1" disableTheme="true">
</xp:pager>
我正在为此使用一个主题。它将空的.xspDataTableViewPanelHeaderStart等设置为显示:无。
使用firebug进行检查以查找元素。将发布解决方案,但目前只有一部智能手机 谢谢你,这给了我一个正确的方向来研究主题。我最终在theme中编写了自己的控件,我可以通过视图面板的theme id属性使用它。我在上面的问题中记录了这种方法。您好,更改寻呼机的disableTheme属性或视图面板本身并没有改变行为,页眉和页脚行仍然被创建