Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Seam (BIRT) Recipe - sampleReportList.xhtml"

(New page: <code> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns=...)
 
Line 1: Line 1:
<code>
+
<code lang="xml">
 
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
 
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Revision as of 15:44, 12 June 2008

<!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.org/rich"
               template="layout/template.xhtml">
                      

<ui:define name="body">

   <h:messages globalOnly="true" styleClass="message"/>
   
   <rich:panel>
       <f:facet name="header">sampleReportList</f:facet>
       
           <h:outputText value="No sampleReport exists" 
                      rendered="#{empty sampleReportList.resultList}"/>
                  
           <h:dataTable id="sampleReportList" var="sampleReport"
                     value="#{sampleReportList.resultList}" 
                  rendered="#{not empty sampleReportList.resultList}">
               <h:column>
                   <f:facet name="header">Id</f:facet>
                   #{sampleReport.id}
               </h:column>
               <h:column>
                   <f:facet name="header">Name</f:facet>
                   <s:link id="sampleReport" 
                        value="#{sampleReport.name}" 
                        view="/sampleReport.xhtml">
                       <f:param name="sampleReportId" 
                               value="#{sampleReport.id}"/>
                   </s:link>
               </h:column>
           </h:dataTable>
       
   </rich:panel>
   
       <s:button id="done" 
              value="Create sampleReport"
               view="/sampleReport.xhtml"/>	
       <s:button id="report" value="Report" view="/sample.pdf?ReportName=report.rptdesign" />		  

</ui:define>

</ui:composition>

Back to the top