Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

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

Pay attention! Tiny ad!
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic