ADF頁面的輸出樣式,ADF頁面輸出樣式
JDev version: 11.1.2.0.0
ADF頁面的列印樣式、郵件樣式通常比普通樣式簡單,列印時有許多不需要顯示的內容(按鈕、捲軸),郵件樣式儘可能簡單以便在郵件中正常操作。
可以使用ADF提供的變數adfFacesContext.outputMode來控制組件是否顯示顯示:<af:activeImage source="/images/stockChart.gif" rendered="#{adfFacesContext.outputMode != "email"}"/>adfFacesContext.outputMode對應的API如下,可以使用它取得頁面樣式: AdfFacesContext.getOutputMode()
1,列印樣式 printableshowPrintablePageBehavior 加到commandButton 中,列印commandButton 所在布局控制項panelSplitter 、panelAccordion 、或者頁面標籤樹的root節點包含的內容,列印時buttons、 tabs、scrollbars將會被忽略掉。
ADF頁面:
對應的列印樣式:
2,郵件樣式 emailable1)無法引用外部stylesheets,email頁面與原頁面肯定不同。2)ADF會進行JSF頁面的自動conversion來適應Microsoft Outlook、 Mozilla Thunderbird、Gmail 3)不是所有的組件都能顯示在郵件樣式中,下面是可以轉換到郵件樣式的組件documentpanelHeaderpanelFormLayoutpanelGroupLayoutpanelListspacershowDetailHeaderinputText (renders as readOnly)inputComboBoxListOfValues (renders as readOnly)inputNumberSlider (renders as readOnly)inputNumberSpinbox (renders as readOnly)inputRangeSlider (renders as readOnly)outputTextselectOneChoice (renders as readOnly)panelLabelAndMessageimagetablecolumngoLink (renders as text)commandImageLink (renders as text)commandLink (renders as text)goImageLink (renders as text)如何建立郵件樣式:在當前的URL中加 org.apache.myfaces.trinidad.agent.email=true郵件樣式的皮膚:af|table { border: 1px solid #636661;} @agent email { af|table {border:none}}運行時:在 Render Response 階段,如果ADF Faces架構接收到request參數 org.apache.myfaces.trinidad.agent.email=true ,監聽器設定了一個內部標識,然後架構做如下處理: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.在URL中增加oracle.adf.view.rich.render.emailContentType=multipart/related,可以將HTML轉換為MIME(圖片可以在offline狀態下瀏覽)。完整的request參數為:org.apache.myfaces.trinidad.agent.email=true&oracle.adf.view.rich.render.emailContentType=multipart/related
ADF頁面:
對應的郵件樣式:
技巧:1)使用inlineStyle,在保證普通ADF頁面配置不變的情況下,正常顯示Email樣式。2)最後一列stretch,需要給最後一列設定個合理的寬度。3)CSS問題導致af:table無上邊框,可以設定Column的header樣式。4)要設定af:table 列頭置中,列內容靠左、靠右等。
adf格式的檔案怎開啟?
這裡指的是GIS領域的常見格式吧。都是ESRI的,用ArcGIS Desktop套件裡的軟體就可以開啟。
adf是ESRI的私人資料格式,印象中是屬於coverage/grid檔案的。好想要和相應檔案夾裡的其它檔案一起組成完整的coverage/grid檔案。這個只有ESRI自家的軟體才支援。
剩下的都是shapefile格式。主流的GIS軟體都支援匯入。一個完整的shape檔案至少包含三個名稱相同尾碼不同的檔案:
shx - shape檔案的索引格式,儲存的是shp檔案中空間實體的索引
shp - shape格式,儲存的空間實體
dbf - 屬性資料格式,每一個空間實體對應屬性資料表。實際上就是dBase III格式。
其它可能的檔案:
sbn/sbx - 空間索引
還可能有prj、shp.xml、fbn/fbx等等。
adf格式的檔案用Arcgis怎開啟?
怎麼說呢?.adf格式其實就是ESRI的柵格grid格式它是包括兩個檔案夾的,除了adf檔案所在的檔案夾之外,外面還有一個伴生而來的info檔案夾,他們是一體的,若是丟了info檔案夾,在Arcgis就看不到這個柵格檔案了;相反則可以直接看到並載入。