Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FacesMessages please help in using

Skanth Chang
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have MPB ,Corresponding to the JSPX page.
I am setting the values to the FacesMassage
and setting the FacesMessageObject to the FacesContext object.
Array errorDTO[];

for(int i=0;i<5;i++)
FacesMessage mesg = new FacesMessage();


in my jspx i have give the tag.
<h:messages >
The problem is it is printing the only one error message on the screen even ,the error are more than one.

Can any one please help me .how to get the multiple error using the FacesMessage.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic