I have a form in which validation error message needs to be displayed below the input elements. The error needs to be highlighted by showing an error bubble around the error mes
Iterator pkit = fctxt.getMessages(); // check all existing messages from the FacesContext
while(pkit.hasNext()){
System.out.println(pkit.next().getDetail()); // get message text
System.out.println(pkit.next().getSummary());
}
If the message you are looking for is found in the while loop, you can take appropriate action