I am trying to make a orderList and am having trouble setting the attributes in the commandButton update and oncomplete tag. I also do not know what their function is, but I know it does not work right if not configured right. Would someone clarify me? Thank you.
<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" />