OverviewSince 3.0 The <ace:printer> tag sends a specific component to the printer, avoiding printing the full page. It must be inside <h:commandButton> or <h:commandLink>.
Getting StartedThis is a typical usage example of the printer component. <h:graphicImage id="image" value="#{bean.imagePath}" /> <h:commandLink> <h:outputText value="print image"/> <ace:printer for="image"/> </h:commandLink> Attributes
for Specifies the id of the component to print. Client Behavior Events
JavaScript APIs / Client BehavioursICEfaces 3.xThe client side component object is exposed through the global variable name specified in the widgetVar attribute. ICEfaces 4+The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use. var widget = ice.ace.instance('frm:componentId);
Keyboard and ARIA supportThere is no specific keyboard or ARIA support for this component. CSS ClassesThis component uses no CSS classes. Known IssuesOn Firefox browsers, some large objects on the page might be cut off and not printed to a second page, if they span more than one page. This is a known issue with the Firefox browser itself with elements that are displayed inline (e.g. display:inline; or display:inline-block; ). To avoid this issue, simply make sure the component or HTML element that you want to print has display:block; in its style attribute. Other ResourcesNone. |
Printer
© Copyright 2021 ICEsoft Technologies Canada Corp.