2 Replies Latest reply on May 11, 2009 9:38 AM by Matthias Hueller

    rich:messages disappear

    Matthias Hueller Novice

      Hi,

      i'm working on a page on which I use rich:messages and rich:suggestionbox.
      My problem is that every time the rich:suggestionbox sends an ajax request/gets an ajax response the messages shown by rich:messages disappear.

      I've already tried to use the rerender and limittolist attributes - but they don't work. Please take a look at this example:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
       xmlns:b="http://www.backbase.com/2006/btl" xmlns:e="http://www.backbase.com/2006/xel"
       xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
       template="/layout/template.xhtml">
       <ui:define name="body">
      
       <h:form>
       <rich:messages />
       <a4j:region id="myregion">
       <h:inputText id="remitteeName1" value="#{transferBean.transferEntity.remitteeName1}" style="width: 275px" />
       <rich:suggestionbox for="remitteeName1" var="suggest"
       suggestionAction="#{transferBean.getTransferAutoCompletionRemitteeName1}"
       fetchValue="#{suggest.remitteeName1}" width="350" height="250"
       rerender="myregion" limittolist="true">
       <h:column>
       <h:outputText value="#{suggest.remitteeName1}" />
       </h:column>
       </rich:suggestionbox>
       <a4j:commandButton value="Weiter" styleClass="button" action="#{transferBean.saveTransfer}" />
       </a4j:region>
       </h:form>
      
       </ui:define>
      </ui:composition>



      Is there a way by which I can prevent rich:messages to disappear?

      Thx,
      altes-kind