1 Reply Latest reply on Nov 23, 2007 3:22 AM by Georges Goebel

    FacesMessages are enqueued and not shown

    Georges Goebel Newbie

      Hi,

      When I have a inputText filed with the attribute required="true" an the user does not enter any data the validation is done but the facesmessage is not show on the page. I have tried with <h:messages/>, <h:message .../>, <s:messages/>, ... but I only see the correct message in the log of JBoss

      I have also tries s:decorate, s:validate, ... but I had no luck

      The cart bean is a stateful bean

      @Stateful(name = "Cart")
      @Remote(Cart.class)
      @Local(Cart.class)
      @Scope(ScopeType.CONVERSATION)
      @Name("cart")
      //@Interceptors(SeamInterceptor.class)
      public class CartImpl implements Cart{
      ...
      }
      

      I also tried with session scope but no luck either

      Is that a bug in Seam or how do I have to configure Seam to show these messages ?

      [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
      


      My code is :

      <h:form id="addCartF" enctype="multipart/form-data">
      <h:inputText id="i_characteristique" value="#{cart.caracteristique}" required="true"/>
      <h:commandButton value="Add to cart" action="#{cart.addToCart}" styleClass="button"/>
       <h:messages/>
      </h:form>
      



      My pages.xml is :


      <page view-id="/addCart.xhtml" login-required="true">
       <begin-conversation join="true"/>
      <navigation from-action="#{cart.addToCart}">
       <rule if-outcome="true">
       <redirect view-id="/main2.seam"/>
       </rule>
       </navigation>
      </page>