Next (v 22), the traitor is privately identified. First, the occasions for this are mentioned; secondly, the traitor is identified (v 26); thirdly, we see the effect of his identification (v 27). There were two occasions for his identification: one was the uncertainty of the disciples, and the other was a question asked by one of the disciples. First, John mentions their uncertainty; and then the disciple's question.
With regard to the first, note that the good disciples had very great love for Christ and their faith was very strong. Because of their love each one assumed that he would not be... the one to deny Christ; yet because their faith was so strong they were most certain that what Christ said could not be false. And so, although none of them was conscious of any evil, they nevertheless thought the prediction of Christ was truer and more believable than their own opinion. Accordingly, considering that they were human and that their affections could change so much that they could will the opposite of what they willed before, they were more uncertain of themselves than of the truth spoken by Christ. So, the disciples looked at one another, uncertain of whom he spoke: "Therefore let any one who thinks that he stands take heed lest he fall" (1 Cor 10:12); "If I wash myself with snow, and cleanse my hands with lye, yet thou will plunge me into a pit" (Job 9:30).
Source: Commentary on John