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

    rich:message question

    Chuanbao Lu Newbie

      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.