A
alexas
Можно вешать код на OnComplete, а можно так:
Код:
....
facesContext.getViewRoot().postScript('alert("1111111")')
....