1 Reply Latest reply on Nov 23, 2007 3:22 AM by georges.goebel

    FacesMessages are enqueued and not shown

    georges.goebel

      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>
      


        • 1. Re: FacesMessages are enqueued and not shown
          georges.goebel

          Hi,

          I have found the problem. I used the IceFaces 1.6.2 implementation and had the problem. After going backwards to 1.6.1 the problem was solved.
          Furthermore, I changed the icefaces library in the jbossSeam 2.0.0GA icefaces example to 1.6.2 and had also problems.
          My problem was solved by using the Icefaces 1.6.1 library.

          Thanks anyway