• Post Reply Bookmark Topic Watch Topic
  • New Topic

h:message not working

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

in the JSF i have this code
_____________________

<h:inputText styleClass="inputText" size="60" id="docName" value="#{pc_CreateDocHierarchy.docName}" required="true"></h:inputText>
Unique Name for your document.

for="docName" />

in the java bean i have the code
__________________

if(li.size()>0){
FacesContext context = getFacesContext();
FacesMessage message = new FacesMessage("Document already exists");
context.addMessage("docName", message);
return "failure";
}


and I am not able to get the error message displayed...

please show me some pointers,leads......



thanks
Pradeep
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!