commandLink를 클릭하면 actionListener에서 이벤트를 호출하고 그 후에는 AJAX를 통해 dataGrid를 업데이트 한 다음 onComplete를 통해 자바 스크립트를 호출합니다. 그것은 처음에는 잘 작동하지만 commandLink를 다시 클릭해도 아무런 효과가 없습니다.자바 스크립트 호출 후 버튼이 작동하지 않습니다
<p:commandLink id="addCompBtn" value="Add Computer" actionListener="#{coltsysLab.addComputer}" update=":organizeForm:availableComputers :organizeForm:labStat" oncomplete="getPos();"/>
내 자바 스크립트가 단지 특정 고정 된 위치에 각 컴퓨터를 위치 :
여기 내 코드입니다.