2 Replies Latest reply on Aug 7, 2007 9:52 AM by ilya_shaikovsky

    No headers being rendered for rich:panel

      Hi all,

      I am a newbie in RichFaces (and JSF en general) so forgive me if I'm making some very simple mistake...

      I've made a very simple page:

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
       pageEncoding="ISO-8859-1"%>
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <f:view >
       <html>
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
       <title>This is my RichFaces sandbox</title>
       <link href="/exampleWeb/sandbox.css" rel="stylesheet" type="text/css" />
       </head>
       <body>
      
       <rich:panel id="mainWindow" headerClass="test">
       <f:facet name="header"><b>What</b> the hell with my header?!</f:facet>
       <h:panelGrid columns="2">
       <rich:panel>
       <f:facet name="header">What the hell with my header?!</f:facet>
       first panel</rich:panel>
       <rich:panel>second panel</rich:panel>
       </h:panelGrid>
       </rich:panel>
      
       </body>
       </html>
      </f:view>
      


      - the panels are being rendered but without headers (contents of header facet is just included in the body of a panel). What have I done wrong? The strange thing is that it WORKED and - without any special changes - stopped :(