6 Replies Latest reply on May 10, 2007 8:55 AM by Adrian Voicu

    RichFace:<rich:panel> with no body ?!

    Adrian Voicu Newbie

      Having this code:

      <%@ page language="java" pageEncoding="ISO-8859-1"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
      <%
       String path = request.getContextPath();
       String basePath = request.getScheme() + "://"
       + request.getServerName() + ":" + request.getServerPort()
       + path + "/";
      %>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <f:view>
      <html>
       <head>
       <base href="<%=basePath%>">
      
       <title>My JSP 'mwCustomerResearch.jsp' starting page</title>
      
       <meta http-equiv="pragma" content="no-cache">
       <meta http-equiv="cache-control" content="no-cache">
       <meta http-equiv="expires" content="0">
       <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
       <meta http-equiv="description" content="This is my page">
       <!--
       <link rel="stylesheet" type="text/css" href="styles.css">
       -->
       </head>
       <body>
       <h:form id="customerResearch">
       <rich:panel>
       <f:facet name="header">
       <h:outputText value="Scheda cliente"/>
       </f:facet>
      
       <h:outputText value="TEST2"/>
       TEST1
       </rich:panel>
       </h:form>
       </body>
      </html>
      </f:view>


      the result is a page like this:

      TEST1
      ----------------------------------------------------
      |Scheda cliente
      |...............................................................|
      |...............................................................|


      The questions are:
      1) Where is the TEST2?
      2) Why TEST1 is printed out of panel object?
      3) Where I'm wrong?

      Thx for all yours response