0
Good morning, everyone. Could someone ask a question? Good is the following, I have a component of the first faces autocomplete and a datatable, but when I perform a search for the autocomplete, it does not update my datatable, how do I do this?
Below follows my autocomplete and my datatable:
<p:autoComplete id="station_select"
value="#{pmvBean.pmv}"
completeMethod="#{pmvBean.completePmv}"
var="pmv" itemValue="#{pmv}"
itemLabel="#{pmv.location}"
converter="pmvConverter"
styleClass="autoComplete-1"
placeholder="#{bundle['system.msg.history.selectPmv']}"
dropdown="true"
scrollHeight="500">
</p:autoComplete>
<p:dataTable id="pmv_datatable" value="#{pmvBean.listPmv}"
widgetVar="pmvDatatable" var="pmv" rowKey="#{pmv.id}"
sortBy="#{pmv.location}"
emptyMessage="#{bundle['system.ui.label.emptyDataTable']}"
style="margin-top: 10px;">