Forums Register Login

FacesMessages please help in using

+Pie Number of slices to send: Send
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.

If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 794 times.
Similar Threads
Tree Grid using JSF
problem to submit the form when populate the <h:selectOneMenu> using javascript
richfaces validation exception
f:selectitems issue in jsf
Custom Components and Error Handling / h:Messages
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:10:38.