• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

h:message not working

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic