1 <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   3 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
   4     xmlns:s="http://jboss.com/products/seam/taglib"
   5     xmlns:ui="http://java.sun.com/jsf/facelets"
   6     xmlns:f="http://java.sun.com/jsf/core"
   7     xmlns:h="http://java.sun.com/jsf/html"
   8     xmlns:rich="http://richfaces.org/rich"
   9     template="layout/template.xhtml">
  10 
  11 <ui:define name="body">
  12 
  13     <rich:panel>
  14         <f:facet name="header">myEntityList</f:facet>
  15 
  16         <div class="results">
  17 
  18             <h:outputText value="No myEntity exists"
  19                        rendered="#{empty myEntityList.resultList}"/>
  20 
  21             <h:dataTable id="myEntityList" var="myEntity"
  22                       value="#{myEntityList.resultList}"
  23                    rendered="#{not empty myEntityList.resultList}">
  24                 <h:column>
  25                     <f:facet name="header">Id</f:facet>
  26                     #{myEntity.id}
  27                 </h:column>
  28                 <h:column>
  29                     <f:facet name="header">Name</f:facet>
  30                     <s:link id="myEntity"
  31                          value="#{myEntity.name}"
  32                    propagation="none"
  33                          view="/myEntity.xhtml">
  34                         <f:param name="myEntityId"
  35                                 value="#{myEntity.id}"/>
  36                     </s:link>
  37                 </h:column>
  38             </h:dataTable>
  39 
  40         </div>
  41 
  42     </rich:panel>
  43 
  44     <div class="actionButtons">
  45         <s:button id="done"
  46                value="Create myEntity"
  47                 view="/myEntity.xhtml"/>
  48     </div>
  49 
  50 </ui:define>
  51 
  52 </ui:composition>