要获得此功能,请使用scrollHeight = "300"
<p:autoComplete
id="other-tax-payer-country"
class="form-input custom-autocomplete"
queryDelay="300"
value="#{cabinetFormView.tmpTaxCountry}"
completeMethod="#{cabinetFormView.getTaxCountriesList}"
forceSelection="true"
var="t" itemValue="#{t}" itemLabel="#{t}"
onclick="PF('dlg2').search('')" widgetVar="dlg2"
converter="countryDtoConverter" scrollHeight = "300">
<p:column>
<h:outputText value="#{t}" />
</p:column>
<f:ajax onevent="validateTaxPayerFields" event="itemSelect" listener="#{cabinetFormView.addTaxCountry}"/>
</p:autoComplete>