Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:messages issue

Ayub ali khan
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When I click the button, in the managed bean, following steps will be executed

FacesContext context = FacesContext.getCurrentInstance();
context.addMessage (null, new FacesMessage("Step was created successfully"));

in my jsp I have the following code:

<h:messages style="color: blue" globalOnly="true" showDetail="false" showSummary="true"/>

However the message is not being displayed in jsf, any clues on what I am doing wrong ?

Thank you.

[ May 13, 2007: Message edited by: Ayub ali khan ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic