Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

h:message not working

 
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
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic