PlanetJava
Custom Search

java-springframework-user
[Top] [All Lists]

Re: SubReport Internacionalization (ResourceBundle)

Subject: Re: SubReport Internacionalization (ResourceBundle)
Date: Thu, 14 Jul 2005 16:58:10 -0300
Thank you very much Rob but the problem is solved.
Due to a weak Jasper documentation, things like these happens.
I must pass to fatherReport xml the subReport parameters.
The code:
<subreportParameter name="REPORT_RESOURCE_BUNDLE"> 
<subreportParameterExpression><![CDATA[$P{REPORT_RESOURCE_BUNDLE}]]></subreportParameterExpression>
</subreportParameter>
<subreportParameter name="REPORT_LOCALE">
<subreportParameterExpression><![CDATA[$P{REPORT_LOCALE}]]></subreportParameterExpression>
</subreportParameter>
On 7/14/05, Rob Harrop <[email protected]> wrote:
> 
> Alex,
> 
> I've checked the code briefly and we are populating the report
> parameters correctly. I'll be able to spend some more time on this next
> week - I'm absolutely swamped at work this week. What would be really
> useful is if you could send me a really small report file that would
> show this bug - posting it on JIRA would be preferable. If its not a bug
> in Spring, I'll link up with the JasperReports guys and see if we can
> get a fix worked out.
> 
> Cheers,
> 
> Rob
> 
> Alexandre Barbosa wrote:
> 
> > Rob , my report is registered this way on ApplicationContext
> >
> > <bean id="promoterProductionReportPdf"
> > class="
> org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView
> > ">
> > <property name="url">
> > <value>/WEB-INF/jasper/PromoterProductionl
> > Report.jrxml</value>
> > </property>
> > <property name="subReportUrls">
> > <map>
> > <entry key="promoterProductionDetailSubReport">
> >
> > <value>/WEB-INF/jasper/PromoterProductionDetailSubReport.jrxml</value>
> > </entry>
> > </map>
> > </property>
> > <property name="subReportDataKeys">
> > <list>
> > <value>detailSubReportData</value>
> > </list>
> > </property>
> > <property name="reportDataKey">
> > <value>data</value>
> > </property>
> > </bean>
> >
> > Subreport snippet in FatherReport
> >
> >
> > <detail>
> > <band height="13" isSplitAllowed="true" >
> > <subreport isUsingCache="true">
> > <reportElement
> > mode="Opaque"
> > x="1"
> > y="0"
> > width="528"
> > height="13"
> > forecolor="#000000"
> > backcolor="#FFFFFF"
> > key="subreport-1"
> > stretchType="NoStretch"
> > positionType="FixRelativeToTop"
> > isPrintRepeatedValues="true"
> > isRemoveLineWhenBlank="false"
> > isPrintInFirstWholeBand="false"
> > isPrintWhenDetailOverflows="false"/>
> >
> > 
> <dataSourceExpression><![CDATA[$P{detailSubReportData}]]></dataSourceExpression>
> > <subreportExpression
> > class="net.sf.jasperreports.engine.JasperReport
> "><![CDATA[$P{promoterProductionDetailSubReport}]]></subreportExpression>
> > </subreport>
> > </band>
> > </detail>
> >
> >
> > In Jasper Forum two people had the same problem without answer, the
> > last post was this..
> > http://sourceforge.net/mailarchive/message.php?msg_id=11845080
> >
> >
> > As i said, only the father report is being translated, but i do not
> > think it could be a spring problem, just to be sure. :)
> > thanks!!
> >
> >
> >
> >
> >
> >
> > On 7/14/05, *Rob Harrop* <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > What is the configuration for your JasperReports view in Spring?
> > Also, can you post a small snippet of how your sub-report is defined
> > in the jrxml.
> >
> > Rob
> >
> > On 13 Jul 2005, at 20:24, Alexandre Barbosa wrote:
> >
> >
> > > Hi all, i have a problem.
> > > Spring set the resourceBundle and locale variables for the Report
> > > automatically on AbstractJasperReportsView class.
> > > with method exposeLocalizationContext(model, request);
> > > then
> > > calls fillReport ....
> > >
> > > My report has a subReport that has labels to be translated but it´s
> > > not being translated because
> > > "something" is not setting the subReport ResouceBundleName
> > > variable, only the "father" report variable.
> > >
> > >
> > > Thanks All !!
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net <http://SF.Net> <http://SF.Net> email is sponsored by the 
> 'Do More
> > With Dual!' webinar happening
> > July 14 at 8am PDT/11am EDT. We invite you to explore the latest
> > in dual
> > core and dual graphics technology at this free one hour event
> > hosted by HP,
> > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
> > _______________________________________________
> > Springframework-user mailing list
> > [email protected]
> > <mailto:[email protected]>
> > https://lists.sourceforge.net/lists/listinfo/springframework-user
> >
> >
> 
> --
> Rob Harrop
> Principal Consultant
> Interface21 - Spring Services from the Source
> http://www.springframework.com
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux 
> Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Springframework-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • SubReport Internacionalization (ResourceBundle)
    • RE: Unsubscribe Help
    • Re: SubReport Internacionalization (ResourceBundle)
      • Re: SubReport Internacionalization (ResourceBundle)
        • Re: SubReport Internacionalization (ResourceBundle)
        • Re: SubReport Internacionalization (ResourceBundle),
        • spring remoting
        • Re: spring remoting
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy