[#5873] - Report properties are not inherited to elements on tables

Category:
Bug report
Priority:
Normal
Status:
Assigned
Project: Severity:
Minor
Resolution:
Reopened
Component: Reproducibility:
Always
Assigned to:

The properties set on report level are not inherited, for example, on the elements on the cell of a table.

The same way, if you set a property on table level that property doesn't affect the elements on the cell on the table. But if you set the same property directly on the element of the cell of the table works ok.

Specifically, the case that I have this behavior is with net.sf.jasperreports.print.keep.full.text but maybe with other occurs the same.

AttachmentSize
Binary Data property-inheritance-test.jrxml7.11 KB
fullinet's picture
Joined: Jan 5 2010 - 6:20am
Last seen: 13 years 8 months ago

3 Comments:

#1

Fixed at JasperReports SVN trunk revision 5613, report level propties now properly apply to table cell elements. Table level properties are not inherited by cell elements, that was never an intended functionality.

Regards,
Lucian

#2

Lucian, thanks for the fix!

About of the table level properties I want to understand why it is not an intended functionality, it is hard to implement with the current design of the framework or there is something that I don't see and could have unintended behavior?
I think that this restriction apply to the subreports also (as far I can see, and maybe I am wrong, but the Table elements is like a subreport decorator).

I ask this because suppose that you have a report with text elements and a table that contains other text elements and you want that all the elements on the table have a suffix if the text value doesn't fit (with net.sf.jasperreports.text.truncate.suffix property) but not for the elements outside the table (at root of the report). In that case you must to set the property on each element inside the table and if you later add a new one element you must to remember to add the property too.

Thanks again,
Martin

#3
  • Resolution:Fixed» Reopened
  • Status:Resolved» Assigned
  • Assigned:lucianc» narcism

Hi, Martin

We are going to investigate feasability of this and let you know.
I'm reopening it.

Thanks,
Teodor

Feedback
randomness