5 Replies Latest reply on Oct 3, 2007 9:25 AM by A W

    problem with rich:panel

    A W Newbie

      hi,

      i'm really new to richfaces and trying to create a website using a <rich:panel> for the main content of the webpage... now the following problem occured, the creation of the rich:panel works fine, but the content is displayed before the panel instead of within?!

      code is as follows:

      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      
      <html>
       <head>
       <title>MyWebsite</title>
       </head>
       <body>
       <f:view>
       <h:form id="fMenuBar">
       <rich:toolBar height="36" itemSeparator="grid">
       <rich:toolBarGroup>
       <h:outputLabel id="lblAction" value="Aktionen:"/>
       <h:graphicImage id="imgNew" value="/images/new.gif" title="xy" />
       <h:graphicImage id="imgEdit" value="/images/edit.gif" title="xy"/>
       <h:graphicImage id="imgPrint" value="/images/print.gif" title="xy"/>
       </rich:toolBarGroup>
      
       <rich:toolBarGroup>
       <h:outputLabel id="lblLanguage" value="Sprache:"/>
       <h:graphicImage id="imgGerman" value="/images/lang_de.gif" title="xy"/>
       <h:graphicImage id="imgEnglish" value="/images/lang_en.gif" title="xy"/>
       </rich:toolBarGroup>
       </rich:toolBar>
       </h:form>
       <h:form id="fContent">
       <rich:panel bodyClass="inpanelBody">
       <f:facet name="header">
       <h:outputText value="MyContent" />
       </f:facet>
       Blahblahblah
       </rich:panel>
       </h:form>
       </f:view>
       </body>
      </html>


      it would be great if anybody could help with this issue?
      thx in advance