2017-05-29 69 views
0

我已經使用af創建了一個jsf頁面:帶有標題的文檔(這是必需的),但默認情況下,由於默認皮膚,它是紅色的。改變af的標題的顏色:在ADF的jsf頁面中的文檔

我試圖用內聯CSS,但它並沒有work.code片段低於:

<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"> 
    <af:document title="#{bundle['XXSG_OSA_CANCEL_ORDER']}" id="d1" 
       inlineStyle="background-color:#F7F7F8;background-image:none;color:red;font-weight:normal;" 
       styleClass="color-set"> 
     <af:messages id="m1" inlineStyle="background-color:#F7F7F8;color:red;font-weight:normal;"/> 
     <af:form id="f1" inlineStyle="background-color:#F7F7F8;"> 

誰能告訴我,如果有,可以在皮膚改變AF的標題覆蓋的關鍵:文件?

代碼,在另一個頁面中使用彈出(的JSF頁):

<div id="j_id16" class="x1d3"> 
 
    <div class="x1ee" data-afr-panelwindowbackground="1" style="display: none;"></div> 
 
    <div class="x1ee" data-afr-panelwindowbackground="1" style="display: none;"></div> 
 
    <div class="x1ee" data-afr-panelwindowbackground="1" style="display: none;"></div> 
 
    <div class="x1ee" data-afr-panelwindowbackground="1" style="display: none;"></div> 
 
    <table summary="" role="presentation" class="x1dj" data-afr-shaddec="sd$4" cellspacing="0" cellpadding="0" border="0"> 
 
     <tbody> 
 
     <tr> 
 
      <td class="p_AFResizable x1d8" id="j_id16::_hse">&nbsp;</td> 
 
      <td class="p_AFResizable x1da" id="j_id16::_hce"> 
 
       <table style="cursor:default" summary="" role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0"> 
 
        <tbody> 
 
        <tr> 
 
         <td> 
 
          <div id="j_id16::_ticn" class="x1e6" style="display:none"></div> 
 
         </td> 
 
         <td class="x1dl" id="j_id16::tb" style="-moz-user-select: none;"> 
 
          <div id="j_id16::_ttxt" class="x17g">Order Cancellation</div> 
 
         </td> 
 
         <td> 
 
          <div class="x1e8"><a aria-label="Close" href="#" onclick="return false" class="x17e" id="j_id16::close" title="Close"></a></div> 
 
         </td> 
 
        </tr> 
 
        </tbody> 
 
       </table> 
 
      </td> 
 
      <td class="p_AFResizable x1dc" id="j_id16::_hee">&nbsp;</td> 
 
     </tr> 
 
     <tr> 
 
      <td class="p_AFResizable x1dq" id="j_id16::_cse">&nbsp;</td> 
 
      <td class="p_AFResizable x1dn" id="j_id16::contentContainer" tabindex="-1"> 
 
       <div id="j_id16::_ccntr" class="x1do" style="width:400px;height:300px;position:relative;overflow:hidden;"> 
 
        <div id="j_id17" class="xt4 " style="position:absolute;width:auto;height:auto;top:0px;left:0px;bottom:0px;right:0px"><iframe id="j_id17::f" title="Content" src="/osaportal/faces/adf.dialog-request?_rtrnId=1496388287220&amp;_afrPage=s2" onload="AdfDhtmlInlineFramePeer.__iframeLoadHandler(event)" style="position:absolute;width:100%;height:100%" _adfloaded="1" data-afr-panelwindowid="j_id16" data-afr-rtnid="1496388287220" frameborder="0"></iframe></div> 
 
       </div> 
 
      </td> 
 
      <td class="p_AFResizable x1ds" id="j_id16::_cee">&nbsp;</td> 
 
     </tr> 
 
     <tr> 
 
      <td class="p_AFResizable x1du" id="j_id16::_fse"> 
 
       <div></div> 
 
      </td> 
 
      <td class="p_AFResizable x1dv" id="j_id16::_fce"> 
 
       <table summary="" role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0"> 
 
        <tbody> 
 
        <tr> 
 
         <td class="p_AFResizable x1dy" id="j_id16::_fcc"></td> 
 
         <td valign="bottom" align="left"> 
 
          <div class="p_AFResizable x1e3"><a tabindex="-1" class="x1e1" id="j_id16::_ree" title="Resize"></a></div> 
 
         </td> 
 
        </tr> 
 
        </tbody> 
 
       </table> 
 
      </td> 
 
      <td class="p_AFResizable x1dw" id="j_id16::_fee"> 
 
       <div></div> 
 
      </td> 
 
     </tr> 
 
     </tbody> 
 
    </table> 
 
</div>

+0

用於設置頁面標題(名稱顯示在瀏覽器選項卡中)的屬性「標題」。如果您的網頁上還有文字標題,則該標題必須是其他內容。 – Nagh

+0

實際上,我們正在使用此頁面作爲彈出窗口,在另一個jsff頁面上彈出此標題,我們希望更改標題的顏色。 –

+0

獲取您的瀏覽器開發人員工具並檢查並在此處發佈此彈出標題的html代碼。 – Nagh

回答

0

此問題已通過更改af的skin屬性解決,panelWindow :: title其中我可以更改此類情況的顏色標題。

0

你說的是標題的窗口欄的顏色(其中像最小化/最大化圖標的東西)? 我認爲這是在客戶端機器的Windows操作系統級別進行控制的,而不是在ADF級別。

+0

我在另一個頁面中使用此頁面作爲彈出窗口,並且我添加了生成的HTML代碼,並且需要以紅色彈出標題。 –