Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FacesMessages please help in using  RSS feed

 
Skanth Chang
Greenhorn
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();
mesg.setSummary(error[i].getText());
ctx.addMessaeg("roll",mesg);

}

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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!