0
I am trying to make an orderList and I am having trouble configuring the attributes in the tag commandButton update and oncomplete. I also don’t know what their function is, but I know it doesn’t work right if not configured right. Anyone would explain it to me? Thanks.
<p:orderList value="#{cliente.listaClientes}" var="cl" controlsLocation="none" itemLabel="#{cl.nome}" itemValue="#{cl}" />
<p:commandButton value="Submit" update="displayListaClientes" oncomplete="PF('clDialog').show()" style="margin-top:5px" />
In update you reference the components that must be updated via AJAX and in oncomplete you specify the javascript that must be executed after the AJAX request has been completed.
– Caffé