Oracle ADF:面板组布局背景图像未在有界任务流中的浏览器中显示
Oracle ADF: Panel group layout background image is not getting displayed in browser in bounded task-flow
我正在使用 ADF (JDeveloper 11.1.2.4) 开发 Web 应用程序。我创建了一个模板,因为我有 panelGroupLayout。对于这个组布局,我设置了一个背景图片,并从这个模板创建了一个 test.jsf 页面。
当我直接 运行 此页面时,背景图像正在浏览器中显示。我已将此页面放入有界任务流中。
我的问题是,当我 运行 来自有界任务流的此页面时,背景图像未显示。
正在为此显示图像 URL:
non-promising local IPv4 URL "login"
此 URL 没有显示图像:
non-promising local IPv4 URL "admin-flow-definition"
我的代码:
<f:facet name="top">
<af:panelGroupLayout id="pt_pgl1" layout="horizontal" valign="top">
<af:panelGroupLayout id="pt_pgl20">
<af:image source="#{resource['images:EasyRUN_Banner_1Part.png']}" shortDesc="EasyRUN Banner "
id="pt_i1"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pt_pgl21" layout="horizontal"
inlineStyle='background-image:url("ERUnBPart2.png");'>
<af:spacer width="37" height="103" id="pt_s45"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pt_pgl19" layout="vertical"
inlineStyle='background-repeat:no-repeat; background-image:url("ERUnBPart2.png");'
halign="left">
<af:spacer width="145" height="20" id="pt_s42"/>
<af:outputText value="#{attrs.user}" id="pt_ot1"/>
<af:spacer width="10" height="20" id="pt_s43"/>
<af:commandLink text="Logout" id="pt_cl1"/>
<af:spacer width="100" height="35" id="pt_s44"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</f:facet>
确保您的图像不在 WEB-INF 文件夹下,而是在 public_html 文件夹下。
如果您的图像位于如下文件夹结构下:
MyApplication/MyViewController/public_html/images
你的页面可以这样引用:
<af:commandMenuItem [..] icon="../images/GlobalSearch/key.gif"/>
我正在使用 ADF (JDeveloper 11.1.2.4) 开发 Web 应用程序。我创建了一个模板,因为我有 panelGroupLayout。对于这个组布局,我设置了一个背景图片,并从这个模板创建了一个 test.jsf 页面。
当我直接 运行 此页面时,背景图像正在浏览器中显示。我已将此页面放入有界任务流中。
我的问题是,当我 运行 来自有界任务流的此页面时,背景图像未显示。
正在为此显示图像 URL:
non-promising local IPv4 URL "login"
此 URL 没有显示图像:
non-promising local IPv4 URL "admin-flow-definition"
我的代码:
<f:facet name="top">
<af:panelGroupLayout id="pt_pgl1" layout="horizontal" valign="top">
<af:panelGroupLayout id="pt_pgl20">
<af:image source="#{resource['images:EasyRUN_Banner_1Part.png']}" shortDesc="EasyRUN Banner "
id="pt_i1"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pt_pgl21" layout="horizontal"
inlineStyle='background-image:url("ERUnBPart2.png");'>
<af:spacer width="37" height="103" id="pt_s45"/>
</af:panelGroupLayout>
<af:panelGroupLayout id="pt_pgl19" layout="vertical"
inlineStyle='background-repeat:no-repeat; background-image:url("ERUnBPart2.png");'
halign="left">
<af:spacer width="145" height="20" id="pt_s42"/>
<af:outputText value="#{attrs.user}" id="pt_ot1"/>
<af:spacer width="10" height="20" id="pt_s43"/>
<af:commandLink text="Logout" id="pt_cl1"/>
<af:spacer width="100" height="35" id="pt_s44"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</f:facet>
确保您的图像不在 WEB-INF 文件夹下,而是在 public_html 文件夹下。
如果您的图像位于如下文件夹结构下:
MyApplication/MyViewController/public_html/images
你的页面可以这样引用:
<af:commandMenuItem [..] icon="../images/GlobalSearch/key.gif"/>