0 Replies Latest reply on Aug 31, 2012 8:07 AM by tscheky

    Rendering of HTML from RichFaces

    tscheky

      Hi all,

       

      There is a problem with rendering html code in my RichFaces application, means that the browser get the RichFaces code and not the rendered html code.

       

      Does anybody know for what reason?

       

      My application have a simple home.xhtml:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

          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:a4j="http://richfaces.org/a4j"

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

          xmlns:s="http://jboss.com/products/seam/taglib" contentType="text/html"

          locale="en"

          >

       

      <html>

          <head>

       

              <!-- IE8 problem with closing Modal Panel -->

              <!-- header name="X-UA-Compatible">IE=EmulateIE7</header -->

              <!-- meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/ -->

       

              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

              <f:loadBundle basename="com.atos.testapp.resources.labels" var="label" />

              <title><h:outputText value="First RF try" /></title>

              <link href="css/default.css" rel="stylesheet" type="text/css" />

          </head>

          <body>

       

          <img src="images/DukeGuitar.jpg" class="floatLeft" height="82" width="96"/>

          <h1>#{label['Title']} #{label.Input}</h1>

          <br clear="all" ></br>

          <table width="100%">

              <tr><td style="background-color: #200070" height="5"></td></tr>

          </table>

          <br clear="all" ></br>

       

              <rich:layout>

                  <rich:layoutPanel position="center">

                      <rich:panel style="border:0;">

                          <h:outputText styleClass="title"

                              value="Any text ..."></h:outputText>

                      </rich:panel>

                  </rich:layoutPanel>

              </rich:layout>

       

          </body>

      </html>

       

      </f:view>

       

      and have following libs included in the WEB-INF/lib folder (in the war file):

       

      common-annotations.jar

      commons-beanutils.jar

      commons-collections.jar

      commons-digester.jar

      commons-logging.jar

      cssparser-0.9.5.jar

      guava-10.0.1.jar

      javax.faces.jar

      jstl.jar

      richfaces-components-api-4.2.2.Final.jar

      richfaces-components-ui-4.2.2.Final.jar

      richfaces-core-api-4.2.2.Final.jar

      richfaces-core-impl-4.2.2.Final.jar

      sac-1.3.jar

       

       

      Thank you!

      Regards Gerhard