2 Replies Latest reply on Jan 17, 2012 9:13 AM by lcbdl888

    rich:message question

    lcbdl888

      Hi, I have very stupid question with my application, which is JSF 2.0 + Weld + Richfaces 4.1 + JPA.

       

      I have a very simple page:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

            xmlns:h="http://java.sun.com/jsf/html"

            xmlns:a4j="http://richfaces.org/a4j"

            xmlns:rich="http://richfaces.org/rich"

            xmlns:f="http://java.sun.com/jsf/core"

            xmlns:ui="http://java.sun.com/jsf/facelets">

       

       

      <h:head></h:head>

      <body>

                <rich:messages id="messages" styleClass="message" globalOnly="true" showSummary="true" showDetail="false"

                                 errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"/>

          <rich:panel>

              <f:facet name="header">

              Write your own custom rich components with built-in AJAX support

              </f:facet>

                          <h:outputText value="Panel Body" />

                </rich:panel>

      </body>

      </html>

       

      When I run the app and show this page, I got this error message on the ouput console:

       

      17-Jan-2012 8:22:36 AM com.sun.faces.renderkit.RenderKitUtils renderUnhandledMessages

      INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

      sourceId=null[severity=(ERROR 2), summary=(One or more resources have the target of 'body', but no 'body' component has been defined within the view.), detail=(One or more resources have the target of 'body', but no 'body' component has been defined within the view.)]

       

       

      Any help will be appreciated.

        • 1. Re: rich:message question
          lcbdl888

          Now I created a brand new application with only JSF2.0 and Richfaces.  I am still getting this issue.

           

          These are the jars that I use:

           

          cssparser-0.9.5.jar

          guava-r08.jar

          javax.faces-2.0.7.jar

          richfaces-components-api-4.1.0.final.jar

          richfaces-components-ui.4.1.0.final.jar

          richfaces-core-api-4.1.0.final.jar

          richfaces-core-impl-4.1.0.final.jar

          sac-1.3.jar

           

          I am running it on Tomcat 7.

          • 2. Re: rich:message question
            lcbdl888

            I got the answer. 

             

            I should use <h:body> tag, instead of <body>