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

Seam (BIRT) Recipe - sampleReportList.xhtml

<!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>
 
        <div class="results">
 
            <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>
 
        </div>
 
    </rich:panel>
 
    <div class="actionButtons">
        <s:button id="done" 
               value="Create sampleReport"
                view="/sampleReport.xhtml"/>	
        <s:button id="report" value="Report" view="/sample.pdf?ReportName=report.rptdesign" />		  
    </div>
 
</ui:define>
 
</ui:composition>

Back to the top