【发布时间】:2016-06-22 10:25:54
【问题描述】:
我无法让它工作。
组件仅发送输入中实际内容的一部分。我应该使用什么事件来触发过滤,需要forceSelection 旁边的什么选项来实际强制选择:
This what is send from a request
InboundShipmentListForm:datalist:j_idt98_input:Select One...
InboundShipmentListForm:datalist:j_idt104_focus:
InboundShipmentListForm:datalist:j_idt104_input:Select One...
InboundShipmentListForm:datalist:j_idt110_input:p
InboundShipmentListForm:datalist:j_idt110_hinput:p
发生了意外错误!消息:对于输入字符串:“p”
<p:column filterBy="#{item.supplierPlant}"
sortBy="#{item.supplierPlant}"
headerText="#{bundle.ListInboundShipmentTitle_supplierPlant}"
style="width:auto; text-align:center">
<!-- autocomplete -->
<f:facet name="header">
<f:facet name="filter">
<p:autoComplete forceSelection="true" itemValue="#{plant}" converterMessage="Select a value"
onchange="PF('datalist').filter()" dropdown="true"
onkeyup="PF('datalist').filter()"
completeMethod="#{inboundShipmentController.completeSuppliers}"
var="plant" itemLabel="#{plant.plantName}"
converter="plantConverter" a:placeholder="Start typing ..." />
</f:facet>
</f:facet>
<h:outputText value="#{item.supplierPlant.plantName}" />
</p:column>
【问题讨论】:
标签: jsf primefaces