Who is are
Who is are

Reputation: 173

JSF Required Message being displayed twice

Here is the senorio and codes. JSF Required Message being displayed twice. how can i solve?

<h:outputText value="#{msg['text.surdurulebilir']} :"/>
                            <p:rating value="#{appraisalBean.newAppraisal.ratingSustainability}" stars="10"
                                      readonly="#{sessionBean.loggedUser.fullName == 'Admin' or sessionBean.loggedUser.fullName == 'Moderator'}"
                                      required="true" requiredMessage="Sürdürülebilirlik Değerlendirilme Alanı Boş Bırakılamaz."  id="star5"/>

Upvotes: 0

Views: 970

Answers (1)

Trilok Chand Bhardwaj
Trilok Chand Bhardwaj

Reputation: 86

please check your p:messages tag and both showDetails and showSummary attribute are set to true. That's why two messages are displaying one for summery and another for detail. One more doubt I have you may be adding messages from java file as well

Upvotes: 2

Related Questions