Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

h:message not working  RSS feed

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

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......

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