Output style of ADF page_html/css_WEB-ITnose
JDev version: 11.1.2.0.0
The printing style and email style of ADF pages are usually simpler than ordinary styles, and there are many things that do not need to be displayed when printing. content (buttons, scroll bars), the email style should be as simple as possible so that it works well in the email.
You can use the variable adfFacesContext.outputMode provided by ADF to control whether the component is displayed:
rendered="#{adfFacesContext.outputMode != "email"}"/>
API corresponding to adfFacesContext.outputMode As follows, you can use it to get the page style:
AdfFacesContext.getOutputMode()
1, printing style printable
showPrintablePageBehavior is added to commandButton to print the content contained in the layout control panelSplitter, panelAccordion, or the root node of the page tag tree where commandButton is located. Buttons, tabs, and scrollbars will be ignored when printing.
ADF page:
Corresponding printing style:
2, email style emailable
1) Unable Referring to external stylesheets, the email page will definitely be different from the original page.
2) ADF will automatically convert the JSF page to adapt to Microsoft Outlook, Mozilla Thunderbird, Gmail
3) Not all components can be displayed in the email style. The following are the ones that can be converted to Mail-style components
document
panelHeader
panelFormLayout
panelGroupLayout
panelList
spacer
showDetailHeader
inputText (renders as readOnly)
inputComboBoxListOfValues (renders as readOnly)
inputNumberSlider (renders as readOnly)
inputNumberSpinbox (r enders as readOnly )
inputRangeSlider (renders as readOnly)
outputText
selectOneChoice (renders as readOnly)
panelLabelAndMessage
image
table
column
goLink (renders as text)
commandImageLink (renders as text)
commandLink (renders as text)
goImageLink (renders as text)
How to create an email style:
Add org.apache.myfaces.trinidad to the current URL .agent.email=true
Email style skin:
af|table {
border: 1px solid # 636661;
}
@agent email {
af|table
{border:none}
}
Runtime:
In the Render Response phase, if the ADF Faces framework After receiving the request parameter org.apache.myfaces.trinidad.agent.email=true, the listener sets an internal identifier, and then the framework performs the following processing:
1) Remove any JavaScript from the HTML.
2) Add all CSS to the page, but only for components included on the page.
3) Remove the CSS link from the HTML.
4) Convert all relative links to absolute links.
5) Render images with absolute URLs.
Add oracle.adf.view.rich.render.emailContentType=multipart/related to the URL to convert HTML to MIME (pictures can be browsed offline). The complete request parameters are: org.apache.myfaces.trinidad.agent.email=true&oracle.adf.view.rich.render.emailContentType=multipart/related
ADF page:
Corresponding email style:
Tips:
1) Use inlineStyle to display the Email style normally while ensuring that the ordinary ADF page layout remains unchanged.
2) For the last column stretch, you need to set a reasonable width for the last column.
3) CSS problem causes af:table to have no upper border. You can set the header style of Column.
4) Set the af:table column header to the center, column content to the left, right, etc.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Want to copy a page in Microsoft Word and keep the formatting intact? This is a smart idea because duplicating pages in Word can be a useful time-saving technique when you want to create multiple copies of a specific document layout or format. This guide will walk you through the step-by-step process of copying pages in Word, whether you are creating a template or copying a specific page in a document. These simple instructions are designed to help you easily recreate your page without having to start from scratch. Why copy pages in Microsoft Word? There are several reasons why copying pages in Word is very beneficial: When you have a document with a specific layout or format that you want to copy. Unlike recreating the entire page from scratch

In macOS Sonoma, widgets don't have to be hidden off-screen or forgotten in the Notification Center panel like they did in previous versions of Apple's macOS. Instead, they can be placed directly on your Mac’s desktop – they’re also interactive. When not in use, macOS desktop widgets fade into the background in a monochrome style, reducing distractions and allowing you to focus on the task at hand in the active application or window. However, when you click on the desktop, they return to full color. If you prefer a drab look and want to retain that aspect of uniformity on your desktop, there's a way to make it permanent. The following steps demonstrate how it is done. Open the System Settings app

Page refresh is very common in our daily network use. When we visit a web page, we sometimes encounter some problems, such as the web page not loading or displaying abnormally, etc. At this time, we usually choose to refresh the page to solve the problem, so how to refresh the page quickly? Let’s discuss the shortcut keys for page refresh. The page refresh shortcut key is a method to quickly refresh the current web page through keyboard operations. In different operating systems and browsers, the shortcut keys for page refresh may be different. Below we use the common W

Standby is a new feature in the iOS 17 update that provides a new and enhanced way to access information when your phone is idle quickly. With StandBy, you can conveniently check the time, view upcoming events, browse your calendar, get weather updates for your location, and more. Once activated, the iPhone will intuitively enter standby mode when set to landscape while charging. This feature is perfect for wireless charging points like your bedside table, or when you're away from your iPhone charging during daily tasks. It allows you to swipe through various widgets displayed in standby to access different sets of information from various applications. However, you may want to modify these widgets or even delete some based on your preferences and the information you need frequently. So let's dive into

Guide to solving misaligned WordPress web pages In WordPress website development, sometimes we encounter web page elements that are misaligned. This may be due to screen sizes on different devices, browser compatibility, or improper CSS style settings. To solve this misalignment, we need to carefully analyze the problem, find possible causes, and debug and repair it step by step. This article will share some common WordPress web page misalignment problems and corresponding solutions, and provide specific code examples to help develop

In iOS, Apple allows you to disable individual home screen pages on your iPhone. It's also possible to rearrange the order of home screen pages and delete pages directly instead of just disabling them. Here's how it works. How to Rearrange Home Screen Pages Touch and hold Space on the Home screen to enter jitter mode. Tap the row of dots that represent Home screen pages. In the Home screen grid that appears, touch and drag a page to rearrange it relative to other pages. Others move in response to your dragging. When you're happy with your new arrangement, tap "Done" in the upper right corner of the screen, then tap "Done" again to exit dither mode. How to Disable or Remove Home Screen Pages Touch and hold Space on the Home screen to enter dither mode. Tap to represent home screen

Title: Implementation method of page jump in 3 seconds: PHP Programming Guide In web development, page jump is a common operation. Generally, we use meta tags in HTML or JavaScript methods to jump to pages. However, in some specific cases, we need to perform page jumps on the server side. This article will introduce how to use PHP programming to implement a function that automatically jumps to a specified page within 3 seconds, and will also give specific code examples. The basic principle of page jump using PHP. PHP is a kind of

"Methods to handle Laravel pages that cannot display CSS correctly, need specific code examples" When using the Laravel framework to develop web applications, sometimes you will encounter the problem that the page cannot display CSS styles correctly, which may cause the page to render abnormal styles. Affect user experience. This article will introduce some methods to deal with the failure of Laravel pages to display CSS correctly, and provide specific code examples to help developers solve this common problem. 1. Check the file path. First check the path of the CSS file.
