Sometimes in XPage applications it happens that our code do not run due to validation errors.
It becomes really difficult to debug if the form contains too many fields. To simplify the debug process in this scenario I have written a code snippet which gives client id of the control for which validation is getting failed.
var itr:java.util.Iterator = facesContext.getClientIdsWithMessages();
var str:Array = ;