次のレンダリングされたHTMLがあります。
<div id="ordersBrowseForm:ordersBrowseWestPane" class="ui-layout-west ui-widget-content ui-corner-all ui-layout-pane ui-layout-pane-west" data-combinedposition="west" style="position: absolute; margin: 0px; left: 0px; right: auto; top: 116px; bottom: 0px; height: 312px; z-index: 0; width: 198px; display: none; visibility: visible; "><div class="ui-widget-header ui-corner-top pe-layout-pane-header">
このPrimeFacesExtensionlayoutPane(pe:layoutPane)にIDを割り当てたので、OmniFacesComponents.findComponentおよびJSFUIComponentを介してBeanからの表示CSSを確認したいと思います。
以下に関するBalusCの回答に基づく:
拡張PrimeFacesコンポーネントに渡された属性へのアクセス
Beanには次のものがあります。
UIComponent westPane = (UIComponent) Components.findComponent("ordersBrowseForm:ordersBrowseWestPane");
if (westPane != null) {
Map attrs = westPane.getAttributes();
String paneStyle = (String) attrs.get("style");
if (debug) {
String log;
log = "LayoutController.handleResize(): ordersBrowseForm:ordersBrowseWestPane style = " +
(paneStyle != null ? paneStyle : "null");
System.out.println(log);
}
}
サーバーログには常に次のものが含まれます。
INFO: LayoutController.handleResize(): ordersBrowseForm:ordersBrowseWestPane style = null
お知らせ下さい。ありがとう。