zac001 Posted June 23, 2009 Share Posted June 23, 2009 Does jasper provide any feature to add multiple resource bundle files in to a JRXML ? I want to display report labels fetched from 2 different property files for a single locale. Is this supported in jasper ? Appreciate if i could have your feed back.Thanks Link to comment Share on other sites More sharing options...
blaguman Posted June 23, 2009 Share Posted June 23, 2009 That's a good question Zac !I'm currently working on this kind of tricks, and I'd very like it to be possible ^^I think we'll have to try again, and maybe someone will help us about that.See you soon Regards,Morgan Link to comment Share on other sites More sharing options...
blaguman Posted June 23, 2009 Share Posted June 23, 2009 Hi !I just saw you can do a specific action for each locale in the xml file !I'll take a look tomorrow and let you know... Regards,Morgan Link to comment Share on other sites More sharing options...
zac001 Posted June 24, 2009 Author Share Posted June 24, 2009 Actually what i'm trying to do is for the same locale to have 2 properties files. The JRXML will refer to 2 properties files for a single locale when rendering the report labels. Thanks Link to comment Share on other sites More sharing options...
blaguman Posted June 24, 2009 Share Posted June 24, 2009 Oh yes, sorry...Don't know for your question, sorry. Regards,Morgan Link to comment Share on other sites More sharing options...
blaguman Posted June 25, 2009 Share Posted June 25, 2009 Just a dumb question, BTW : why don't you put the different labels in the same file, with different id's ? Regards,Morgan Link to comment Share on other sites More sharing options...
zac001 Posted June 25, 2009 Author Share Posted June 25, 2009 Could do that but the application is architectured in such a way where common labels are taken from a common properties file and for each report a report specific labels are taken from a different properties file. Link to comment Share on other sites More sharing options...
lucianc Posted June 29, 2009 Share Posted June 29, 2009 The standard mechanism only supports a single properties file.But you can programmatically pass a custom java.util.ResourceBundle instance via the REPORT_RESOURCE_BUNDLE parameter when filling a report. So you have a java.util.ResourceBundle implementation that reads from several property files, you can use it in JR.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now