Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JasperService overrides REPORT_LOCALE parameters #3

Open
wavyx opened this issue Oct 17, 2012 · 1 comment
Open

JasperService overrides REPORT_LOCALE parameters #3

wavyx opened this issue Oct 17, 2012 · 1 comment

Comments

@wavyx
Copy link

wavyx commented Oct 17, 2012

Hi,

the JasperService->generateExporter(JasperReportDef reportDef) checks for reportDef.locale and overrides the reportDef.parameters.REPORT_LOCALE.

Assuming one follows the iReport documentation and add
params.put(JRParameter.REPORT_LOCALE, Locale.FRENCH);
The generateExporter will override the locale with Locale.getDefault()

You can have the right behavior if you set reportDef.locale but I suggests to stay compliant with iReport params, by first checking if the user already set the REPORT_LOCALE in the params map.
if(!reportDef.parameters.REPORT_LOCALE){ ... }

@albertjose
Copy link

Hello friend, you could solve the problem? I have the same problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants