0 Replies Latest reply on Mar 30, 2007 4:15 AM by Johann Meier

    Seam and Richfaces: <rich:panel> Problem

    Johann Meier Newbie

      If I auto generate an entity with seam-gen (1.2.1GA) there is also a detail page generated - something like this:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       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:rich="http://richfaces.ajax4jsf.org/rich"
       template="layout/template.xhtml">
      
      <ui:define name="body">
      
       <h:messages globalOnly="true" styleClass="message"/>
      
       <h:form id="accountForm">
      
       <rich:panel>
       <f:facet name="header">account</f:facet>
      
       <s:decorate id="nameDecoration" template="layout/edit.xhtml">
       <ui:define name="label">Name</ui:define>
       <h:inputText id="name" required="true"
       value="#{accountHome.instance.name}"/>
       </s:decorate>
      
       <div style="clear:both"/>
       </rich:panel>
      
       <div class="actionButtons">
       <h:commandButton id="save"
       value="Save"
       action="#{accountHome.persist}"
       rendered="#{!accountHome.managed}"/>
       <h:commandButton id="update"
       value="Save"
       action="#{accountHome.update}"
       rendered="#{accountHome.managed}"/>
       <h:commandButton id="delete"
       value="Delete"
       action="#{accountHome.remove}"
       rendered="#{accountHome.managed}"/>
       <s:button propagation="end"
       id="done"
       value="Done"
       view="/accountList.xhtml"/>
       </div>
      
       </h:form>
      
      </ui:define>
      
      </ui:composition>
      


      The problem is that the facet header is not renderd. A similar problem in the 1.2.0 release should be solved in this new release.
      Look at http://jira.jboss.com/jira/browse/RF-5

      Thanks,
      Wolfgang