<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: How to set BIRT parameters from Seam page?
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/cacelis">Carlos Celis Osorio</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/644187#644187">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have other problem when I try to send the parameters from JSF page to a BIRT report.</p><p>The problem is, the parameter values aren't arriving to the report.</p><p>If I print the values selected in the list, I can see them in the display but, they don't arrive to the report. Otherwise, If I try to send constant values in the attribute "value" of the tag "b:param" (for example, <b:param name="OficinaVentas" value="OFICINA1" />), the parameters arrive to the report.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Code is here:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-xml"><!DOCTYPE html PUBLIC <span class="jive-xml-quote">-//W3C//DTD XHTML 1.0 Transitional//EN</span>
<span class="jive-xml-quote"><a class="jive-link-external-small" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a></span>>
<span class="jive-xml-tag"><span><html xmlns="</span><a class="jive-link-external-small" href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a><span>"
    xmlns:h="</span><a class="jive-link-external-small" href="http://java.sun.com/jsf/html" target="_blank">http://java.sun.com/jsf/html</a><span>"
    xmlns:f="</span><a class="jive-link-external-small" href="http://java.sun.com/jsf/core" target="_blank">http://java.sun.com/jsf/core</a><span>"
    xmlns:ui="</span><a class="jive-link-external-small" href="http://java.sun.com/jsf/facelets" target="_blank">http://java.sun.com/jsf/facelets</a><span>"
    xmlns:s="</span><a class="jive-link-external-small" href="http://jboss.com/products/seam/taglib" target="_blank">http://jboss.com/products/seam/taglib</a><span>"
    xmlns:rich="</span><a class="jive-link-external-small" href="http://richfaces.org/rich" target="_blank">http://richfaces.org/rich</a><span>"
    xmlns:a4j="</span><a class="jive-link-external-small" href="http://richfaces.org/a4j" target="_blank">http://richfaces.org/a4j</a><span>"
    xmlns:birt="</span><a class="jive-link-external-small" href="http://www.eclipse.org/birt/taglibs/birt.tld" target="_blank">http://www.eclipse.org/birt/taglibs/birt.tld</a><span>"
    xmlns:b="</span><a class="jive-link-external-small" href="http://jboss.com/products/seam/birt" target="_blank">http://jboss.com/products/seam/birt</a><span>"></span></span>
<span class="jive-xml-tag"><ui:composition template="/layout/template.xhtml"></span>
    <span class="jive-xml-tag"><ui:define name="body"></span>
        <span class="jive-xml-tag"><h:form id="homeForm"></span>
            <span class="jive-xml-tag"><rich:panel id="panel_config_report"></span>
                <span class="jive-xml-tag"><f:facet name="header"></span>
                    <span class="jive-xml-tag"><h:outputText value="Reporte - Ventas y Devoluciones" /></span>
                <span class="jive-xml-tag"></f:facet></span>
                <span class="jive-xml-tag"><table align="center"></span>
                    <span class="jive-xml-tag"><tr></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Fecha Inicio:" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><rich:calendar id="fecha_inicio" datePattern="dd/MM/yyyy"
                                popup="true" locale="CO" enableManualInput="false"
                                value="#{report.report.fechaInicio}"></span>
                            <span class="jive-xml-tag"></rich:calendar></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Fecha Fin:" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><rich:calendar id="fecha_fin" datePattern="dd/MM/yyyy"
                                popup="true" locale="CO" enableManualInput="true"
                                value="#{report.report.fechaFin}"></span>
                            <span class="jive-xml-tag"></rich:calendar></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Organización de Ventas" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:selectManyListbox id="organizacion"
                                value="#{report.report.organizacionVentas}" size="5"></span>
                                <span class="jive-xml-tag"><s:selectItems value="#{listaOrganizaciones}"
                                    var="_organizacion"
                                    itemValue="#{_organizacion.idOrganizacionVentas}"
                                    label="#{_organizacion.organizacionVentas}" size="10"></span>
                                <span class="jive-xml-tag"></s:selectItems></span>
                            <span class="jive-xml-tag"></h:selectManyListbox></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Oficina de Ventas" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:selectManyListbox id="oficina"
                                value="#{report.report.oficinaVentas}" size="5"></span>
                                <span class="jive-xml-tag"><s:selectItems value="#{listaOficinaVentas}" var="_oficina"
                                    itemValue="#{_oficina.idOficinaVentas}"
                                    label="#{_oficina.oficinaVentas}"></span>
                                <span class="jive-xml-tag"></s:selectItems></span>
                            <span class="jive-xml-tag"></h:selectManyListbox></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Canal de Distribución" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:selectManyListbox id="canal"
                                value="#{report.report.canalDistribucion}" size="5"></span>
                                <span class="jive-xml-tag"><s:selectItems value="#{listaCanalDistribucion}" var="_canal"
                                    itemValue="#{_canal.idCanalDistribucion}"
                                    label="#{_canal.canalDistribucion}"></span>
                                <span class="jive-xml-tag"></s:selectItems></span>
                            <span class="jive-xml-tag"></h:selectManyListbox></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Grupo de Ventas" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:selectManyListbox id="grupo"
                                value="#{report.report.grupoVentas}" size="5"></span>
                                <span class="jive-xml-tag"><s:selectItems value="#{listaGrupoVentas}" var="_grupo"
                                    itemValue="#{_grupo.idGrupoVendedor}"
                                    label="#{_grupo.grupoVendedor}"></span>
                                <span class="jive-xml-tag"></s:selectItems></span>
                            <span class="jive-xml-tag"></h:selectManyListbox></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:outputText value="Responsable de Pago" /></span><span class="jive-xml-tag"></td></span>
                        <span class="jive-xml-tag"><td></span><span class="jive-xml-tag"><h:inputText value="#{report.report.responsablePago}" /></span>
                        <span class="jive-xml-tag"></td></span>
                    <span class="jive-xml-tag"></tr></span>
                    <span class="jive-xml-tag"><tr></span>
                        <span class="jive-xml-tag"><td colspan="14" align="center"></span><span class="jive-xml-tag"><h:commandButton id="generar"
                                action="#{report.generateReport()}" value="Visualizar reporte" /></span>
                        <span class="jive-xml-tag"></td></span>
                    <span class="jive-xml-tag"></tr></span>
                <span class="jive-xml-tag"></table></span>
            <span class="jive-xml-tag"></rich:panel></span>
            <span class="jive-xml-tag"><rich:panel id="report1"
                rendered="#{report.report.fechaFin != null and report.report.fechaInicio != null
                 and report.report.organizacionVentas != null and report.report.oficinaVentas != null
                 and report.report.canalDistribucion != null and report.report.grupoVentas != null
                 and report.report.responsablePago != null}"></span>
                <span class="jive-xml-tag"><f:facet name="header"></span>
                    <span class="jive-xml-tag"><h:outputText value="Reporte consolidado" /></span>
                <span class="jive-xml-tag"></f:facet></span>
                <span class="jive-xml-tag"><table align="center"></span>
                    <span class="jive-xml-tag"><tr align="center"></span>
                        <span class="jive-xml-tag"><td align="center"></span><span class="jive-xml-tag"><b:birt
                                designName="/report/design/reporteVentasDevolucionesConsolidado.rptdesign"
                                designType="frameset" format="html"></span>
                                <span class="jive-xml-tag"><b:param name="OrganizacionVentas"
                                    value="#{report.report.organizacionVentas != null ? report.report.organizacionVentaString : ''}" /></span>
                                <span class="jive-xml-tag"><b:param name="OficinaVentas"
                                    value="#{report.report.oficinaVentas != null ? report.report.oficinaVentaString : ''}" /></span>
                                <span class="jive-xml-tag"><b:param name="CanalDistribucion"
                                    value="#{report.report.canalDistribucion != null ? report.report.canalDistribucionString : ''}" /></span>
                                <span class="jive-xml-tag"><b:param name="GrupoVentas"
                                    value="#{report.report.grupoVentas != null ? report.report.grupoVentaString : ''}" /></span>
                                <span class="jive-xml-tag"><b:param name="ResponsablePago"
                                    value="#{report.report.responsablePago != null ? report.report.responsablePago : ''}" /></span>
                            <span class="jive-xml-tag"></b:birt></span><span class="jive-xml-tag"></td></span>
                    <span class="jive-xml-tag"></tr></span>
                    <span class="jive-xml-tag"><tr align="center"></span>
                        <span class="jive-xml-tag"><td align="center"></span><span class="jive-xml-tag"><h:commandButton id="ver_detalles"
                                action="#{report.viewDetails()}" value="Ver detalles" /></span> <span class="jive-xml-tag"><s:button
                                view="/export.xhtml" id="exportar" value="Exportar" /></span><span class="jive-xml-tag"></td></span>
                    <span class="jive-xml-tag"></tr></span>
                <span class="jive-xml-tag"></table></span>
            <span class="jive-xml-tag"></rich:panel></span>
        <span class="jive-xml-tag"></h:form></span>
    <span class="jive-xml-tag"></ui:define></span>
<span class="jive-xml-tag"></ui:composition></span>
<span class="jive-xml-tag"></html></span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Hope you can help me.</p><p>Thanks, in advance.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/644187#644187">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>