H:messages and Ajax4JSF

Hi,
I have a problem with displaying error message after sending an ajax request.
Facelet:
<a4j:form ajaxSubmit="true" reRender="data">
<a4j:outputPanel ajaxRendered="true">               
<h:messages></h:messages>
</a4j:outputPanel>
<a4j:commandButton value="Test" action="#{bean.command} />
</a4j:form>
Bean Class:
public void command() {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("test"));
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.ERROR, "test", "test"));
// Test
Iterator i = FacesContext.getCurrentInstance().getMessages();
System.out.println(i.hasNext()); // returns false
Is there sth special I am missing about adding messages to the FacesContext with Ajax? Is it possible at all?
Thanks in advance!

You should better to commit your question to Ajax4jsf specific forum:
http://jboss.com/index.html?module=bb&op=main&c=27

Similar Messages

Maybe you are looking for

  • HT2534 why do i need to enter credit card for free app purchases when i already set up itunes id

    please HELP me .I want to install the free apps on my ipod touch but after i enter my id login to apple,it wants to ask for credit card .I never had this problem before with my other ipod touch to install apps that r free.Thanx

  • I can't create an instance for BPF (BPC Netweaver 7.5)

    Hi experts: I am trying to create a Busines Process Flow. I am following steps according to the "how to" that explains the proccess. I firstly created the BPF template and, then, when I am creating an instance, identity dimensions are blank. Theorica

  • What's the most efficient way to fade titles on & off

    using the basic text generator. wondering if it's more efficient to fade a title on & off using opacity in the motion tab or using a dissolve from the effects menu applied to to the in & out point of the title. it's certainly a lot quicker just addin

  • Internal Working of Indexes?

    Greetings All, I followed following link - http://docs.oracle.com/cd/E11882_01/server.112/e16508/indexiot.htm But did not proper idea of how actually indexes works for update/insert/select queries. For example, lets say there is a table employee (the

  • Remove load balancing...

    Oracle 10gR2 RHEL 4 AS 64bit I wanted to know is there a way to remove load balancing in RAC? Would I just set the LOAD_BALANCE parameter to OFF in the TNSnames.ora file? Would that take care of it? The problem is occurring because developers are try