Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: EE-3.3.0.GA_P02, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #12711 - https://icesoft.my.salesforce.com/5007000000acCSU
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
-
Workaround Exists:Yes
-
Workaround Description:Add style="display:block;" to ace:dataTable.
Description
-
Hide
- Case12711Example.war
- 3.50 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/com/.../example/Item.class 2 kB
- WEB-INF/classes/.../example/TestBean.class 2 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/javax.faces.jar 2.53 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- welcomeICEfaces.xhtml 4 kB
-
- Case12711Example.zip
- 21 kB
- Arran Mccullough
-
- ice9909.html
- 5 kB
- Arturo Zambrano
-
Hide
- print.xps
- 172 kB
- Arran Mccullough
-
- Metadata/Job_PT.xml 3 kB
- Metadata/MXDC_Empty_PT.xml 0.3 kB
- Documents/1/Metadata/Page1_Thumbnail.JPG 14 kB
- Documents/1/Pages/_rels/1.fpage.rels 0.6 kB
- Documents/1/Pages/1.fpage 46 kB
- Documents/.../6CB6F33A-58A8-49FD-BACE-5B31594A717F.odttf 193 kB
- Documents/.../3D1C5694-7A38-4281-9B7B-950B7876D68B.odttf 183 kB
- Documents/.../98321606-8FD7-4EE2-B582-0D219BA7E76F.odttf 180 kB
- Documents/1/.../FixedDocument.fdoc.rels 0.3 kB
- Documents/1/FixedDocument.fdoc 0.2 kB
- _rels/FixedDocumentSequence.fdseq.rels 0.3 kB
- FixedDocumentSequence.fdseq 0.2 kB
- _rels/.rels 0.4 kB
- [Content_Types].xml 0.7 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
After investigating this issue thoroughly, with both codebases (3.3 EE and 4.0) and different browsers, I found out that the issue only occurs in Firefox, and it seems to be a general bug with the browser's printing functionality, as there are numerous threads on the web talking about issues with pages cutting off when printing in Firefox. In the case of ace:dataTable, I found that if we remove display:inline-block; from the ui-datatable CSS class, then the table gets printed correctly, printing the rest of the rows in a second page in this case. A plain-HTML test is attached to this JIRA, showing the issue with printing objects that behave as inline-block on Firefox. If this styling is removed from the table in this example, then the entire table is printed.
The only possible solution is to remove display:inline-block; from the ui-datatable CSS class. There are no other feasible solutions. I tried specifying the container of the table in the ace:printer component instead, but that still cut off the table. I also tried doing the same and adding some more content after the table, and the table is still cut off and the other content is displayed after that.
It is unclear what was the initial motivation for making the ace:dataTable's root container to display as inline-block, instead of the default block for div's. It is also unclear whether this change could affect existing applications. However, most likely this won't affect much, and app developers could always simply add display:inline-block; to the style attribute of the component or add such styling to a container node, if they really need the table to behave as an inline object;. Alternatively, we could decide not to make this change and simply suggest app developers interested in using ace:printer with ace:dataTable to add style="display:block;" to the table component in order to avoid this issue.
Need to document the known issue for EE 3.3.0.GA_P02 in the Release Notes.
Documented this issue on the wiki. Resolving as Won't Fix.
Attached test case that shows the issue along with some sample output. Note, the icefaces, icefaces-ace, and icefaces-compat files need to be added back in to run the war.
Steps: