>
>
>
>
>
> > Obrigado pela resposta, Assis.
>
> > Estou adaptando a contribuição do colega Rodrigo Yoshima para ser
> > usado no Seam 2.2.0, além de algumas poucas mudanças.
> > Segue o código:
http://www.guj.com.br/posts/list/76720.java
> > Falta o principal: testar... segue mais ou menos o modelo que vc
> > postou, mas cada relatório implementa uma classe
> > abstrata, fornecendo o caminho para os jaspers e parametrizando as
> > consultas.
>
> > Gostaria de ouvir opiniões dos colegas sobre o BIRT e OpenReports....
> > em conjunto com SEAM.
>
> > Abraços
>
> > On 24 abr, 20:00, Assis Júnior <
assisp...@xxxxxxxxx> wrote:
> > > Sim foi similiar!
>
> > > Segue exemplo:
>
> > > Depois posta ai tua solução!
>
> > > @End
> > > public void imprimirRelatorio() throws JRException,
> > > IOException {
> > > final Map<String, Object> params = new HashMap<String, Object>();
>
> > > params.put("dataInicio", getDataInicio());
> > > params.put("dataFim", getDataFim());
> > > params.put("lstAgrupamentoRelatorio", getLstRelatorio(agrupamento));
> > > params.put("agrupamento", agrupamento);
>
> > > final String path = ((HttpServletRequest) FacesContext
> > > .getCurrentInstance().getExternalContext().getRequest())
> > > .getRealPath("WEB-INF/classes/appweb/");
>
> > > final String realPath = path + "/relatorio/";
>
> > > params.put("path", realPath);
>
> > > printReport(realPath + "relatorio.jasper", params,
> > > (HttpServletResponse) FacesContext.getCurrentInstance()
> > > .getExternalContext().getResponse(), FacesContext
> > > .getCurrentInstance().getResponseStream());
>
> > > FacesContext.getCurrentInstance().responseComplete();
> > > }
>
> > > public static void printReport(final String path,
> > > final Map<String, Object> params,
> > > final HttpServletResponse response, final OutputStream outputStream)
> > > throws JRException, IOException {
>
> > > final JasperPrint print = JasperFillManager.fillReport(path, params,
> > > new JREmptyDataSource());
>
> > > final byte[] bytes = JasperExportManager.exportReportToPdf(print);
>
> > > sendReport(response, bytes, outputStream);
> > > }
>
> > > public static void sendReport(final HttpServletResponse response,
> > > final byte[] bytes, final OutputStream outputStream)
> > > throws IOException {
> > > response.setContentType("application/pdf");
> > > response.setContentLength(bytes.length);
>
> > > final OutputStream ouputStream = response.getOutputStream();
> > > ouputStream.write(bytes, 0, bytes.length);
>
> > > ouputStream.flush();
> > > ouputStream.close();
> > > }
>
> > > Em 24 de abril de 2010 18:01, Rodrigo <
eu.t...@xxxxxxxxx> escreveu:
>
> > > > Oi Assis,
>
> > > > Obrigado pela resposta.
>
> > > > No caso, vc usa o IReports para construir os relatórios e compilá-los
> > > > e o Jasper para executá-los, correto?
> > > > Por acaso a integração do .jasper com o Seam, vc fez como? Segue mais
> > > > ou menos a idéia dessa referência?
http://www.bineshgummadi.com/node/29
>
> > > > Grato
>
> > > > On 24 abr, 17:57, Assis Júnior <
assisp...@xxxxxxxxx> wrote:
> > > > > Sobre os relatórios: Já usei a integração do seam e o jasper reports.
> > > > Obtive
> > > > > melhores resultados usando o iReports do que a integração do seam.
> > Essa
> > > > > integração ainda não te dá os mesmos recursos que o iReports.
>
> > > > > Em 24 de abril de 2010 17:49, Rodrigo <
eu.t...@xxxxxxxxx> escreveu:
>
> > > > > > Olá pessoal!
>
> > > > > > Bom, gostaria se alguém aqui indica um framework específico para
> > > > > > geração de relatórios parametrizados usando o framework Seam...
> > BIRT,
> > > > > > JasperReports, OpenReports... qual é o melhor e mais simples de
> > usar?
> > > > > > Quais referências se basear para aprendizado rápido e efetivo?
>
> > > > > > Outra coisa... algum de vcs já trabalharam com Business
> > Intelligence
> > > > > > integrada à uma aplicação SEAM?
> > > > > > Quais ferramentas utilizaram? Minha idéia é realizar consultas
> > > > > > multidimensionais e gerar pdfs com o resultado do casamento entre
> > os
> > > > > > dados.... Uma solução open source é o Pentaho BI... alguém já usou
> > e
> > > > > > integrou em sua aplicação?
>
> > > > > > Grato pelas respostas
>
> > > > > > --
> > > > > >
http://groups.google.com/group/javasf
>
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "javasf: JavaServer Faces Group" group.
> > > > > > To post to this group, send email to
javasf@xxxxxxxxxxxxxxxx
>
> > > > > --
> > > > > Atenciosamente,
> > > > > Assis júnior
> > > > > SCJP 5.0 Certified
>
> > > > > --
http://groups.google.com/group/javasf
>
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "javasf: JavaServer Faces Group" group.
> > > > > To post to this group, send email to jav...@xxxxxxxxxxxxxxxxxxxxxxxx
> > > > texto das mensagens anteriores -
>
> > > > > - Mostrar texto das mensagens anteriores -
>
> > > > --
> > > >
http://groups.google.com/group/javasf
>
> > > > You received this message because you are subscribed to the Google
> > > > Groups "javasf: JavaServer Faces Group" group.
> > > > To post to this group, send email to
javasf@xxxxxxxxxxxxxxxx
>
> > > --
> > > Atenciosamente,
> > > Assis júnior
> > > SCJP 5.0 Certified
>
> > > --
http://groups.google.com/group/javasf
>
> > > You received this message because you are subscribed to the Google
> > > Groups "javasf: JavaServer Faces Group" group.
> > > To post to this group, send email to jav...@xxxxxxxxxxxxxxxxx Ocultar
> > texto das mensagens anteriores -
>
> > > - Mostrar texto das mensagens anteriores -
>
> > --
> >
http://groups.google.com/group/javasf
>
> > You received this message because you are subscribed to the Google
> > Groups "javasf: JavaServer Faces Group" group.
> > To post to this group, send email to
javasf@xxxxxxxxxxxxxxxx
>
> --
> Atenciosamente,
> Assis júnior
> SCJP 5.0 Certified
>
> --
http://groups.google.com/group/javasf
>
> You received this message because you are subscribed to the Google
> Groups "javasf: JavaServer Faces Group" group.
> To post to this group, send email to javasf@xxxxxxxxxxxxxxxxx Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -
--
http://groups.google.com/group/javasf
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to
javasf@xxxxxxxxxxxxxxxx