Javascript and <p:ajax> behave strange
问题 I have a js-function codeAddress() that processess the data from address and updates the values of fullAddress and validField . The data of fullAddress and validField is passed by <p:ajax> to the backing bean, but the setter methods seem to get called one request delayed. The alert() at the end of codeAddress shows the correct new data. When address has onchange="test()" everything works fine an the backing beans setter methods are called as they should without any delay. I am clueless what