无法使用过滤器显示 p:column 的水印文本
Unable to display watermark text for p:column with filter
我正在使用 Primefaces 6.2,我有一个 p:dataTable 具有以下结构:
<h:form id="infocenterform">
...
...
<p:dataTable id="infocentertable" ...>
...
...
<p:column id="infocenterthemacolumn" style="width: 60%;" filterBy="#{eintrag.thema}" headerText="Thema" filteredValue="#{marketingPagesController.filteredEintragList}" sortBy="#{eintrag.thema}" filterMatchMode="contains">
<h:outputLink value="#{eintrag.file}" target="_blank" >
<h:outputText value="#{eintrag.thema}"/>
</h:outputLink>
<p:watermark for="@(#infocenterform\:infocentertable\:infocenterthemacolumn\:filter)" value="Search with a keyword" />
</p:column>
水印文本未显示(页面呈现、过滤、排序等都正常)。我参考了此页面上人们为 PF 6.1 建议的水印语法:
How to show water mark in filter in primefaces?
知道我做错了什么吗?
更新:此语法最终对我有用...但我不得不将双斜杠更改为单斜杠,如下所示:)
<p:watermark for="@(#infocenterform\:infocentertable\:infocenterthemacolumn\:filter)" value="Search with a keyword" />
(紧接着 post:Column Filter Watermark is Not Showing in PrimeFaces in 6.0.19 Onwards)
我正在使用 Primefaces 6.2,我有一个 p:dataTable 具有以下结构:
<h:form id="infocenterform">
...
...
<p:dataTable id="infocentertable" ...>
...
...
<p:column id="infocenterthemacolumn" style="width: 60%;" filterBy="#{eintrag.thema}" headerText="Thema" filteredValue="#{marketingPagesController.filteredEintragList}" sortBy="#{eintrag.thema}" filterMatchMode="contains">
<h:outputLink value="#{eintrag.file}" target="_blank" >
<h:outputText value="#{eintrag.thema}"/>
</h:outputLink>
<p:watermark for="@(#infocenterform\:infocentertable\:infocenterthemacolumn\:filter)" value="Search with a keyword" />
</p:column>
水印文本未显示(页面呈现、过滤、排序等都正常)。我参考了此页面上人们为 PF 6.1 建议的水印语法: How to show water mark in filter in primefaces?
知道我做错了什么吗?
更新:此语法最终对我有用...但我不得不将双斜杠更改为单斜杠,如下所示:)
<p:watermark for="@(#infocenterform\:infocentertable\:infocenterthemacolumn\:filter)" value="Search with a keyword" />
(紧接着 post:Column Filter Watermark is Not Showing in PrimeFaces in 6.0.19 Onwards)