我有 primefaces 数据表,其中定义了分页器模板和工具栏<f:facet name="header">
例子:
<p:dataTable paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
currentPageReportTemplate="{startRecord} - {endRecord} of {totalRecords}">
<f:facet name="header">
<p:selectOneMenu id="presetSelectOneMenu"
value="#{alarmTable.selectedGuiPreset}"
style="padding: 0; margin: 0;float: left; display: block; width: 100px; text-align: left;">
<f:selectItem itemLabel="Global" itemValue="" itemDisabled="true" />
<f:selectItems value="#{guiSettings.arrayOfGlobalGuiPresets}" />
<f:selectItem itemLabel="Personal" itemValue="" itemDisabled="true" />
<f:selectItems value="#{guiSettings.arrayOfPersonalGuiPresets}" />
<p:ajax event="change" update="alarmTableId"
listener="#{alarmTable.actionSelectGuiPreset(true)}" />
</p:selectOneMenu>
<p:commandButton id="btnRefreshFilter" icon="ui-icon-refresh"
action="#{alarmTable.actionSelectGuiPreset(true)}"
update="alarmTableId" style="margin-left: 3px; float: left;"
title="Refresh" />
<h:outputText id="selectedGuiPresetText"
style="float: left; font-size: 12px; padding-top: 3px; padding-left: 5px"
value="In use - '#{alarmTable.selectedGuiPresets.size() > 0 ? alarmTable.selectedGuiPresets.get(0).presetName : ''}'" />
</f:facet>
<p:columns>
它看起来像:图片
我想节省垂直监视器空间并将组件集成<f:facet name="header">
到分页器行中。那可能吗?