我使用af创建了一个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;">
有人可以告诉我是否有一个可以在SKIN中覆盖的键来更改af:document的标题?
另一页中使用的弹出窗口代码(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"> </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"> </td>
</tr>
<tr>
<td class="p_AFResizable x1dq" id="j_id16::_cse"> </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&_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"> </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>
&#13;
答案 0 :(得分:0)
你是在谈论窗口栏中标题的颜色(最小化/最大化图标之类的东西)? 我认为这是在客户端机器的Windows操作系统级别控制,而不是在ADF级别。
答案 1 :(得分:0)
通过更改 af | panelWindow :: title 的外观属性来解决此问题,我可以更改此类案例的颜色标题。