无法设置焦点在光标上

时间:2015-03-31 01:56:33

标签: google-chrome jsf-2 primefaces

只有在使用谷歌浏览器时,我才会有一种非常奇怪的行为。

当我第一次打开我的网站(我正在使用primefaces)时,我无法将注意力集中在光标上。

“解决方法”将打开另一个标签,突然我将光标控制回来。

我知道为什么会发生这种情况,我该如何解决呢?

(仅限Chrome)。

由于

<ui:define name="content">
    <p:layout fullPage="true" >
        <p:layoutUnit position="north" size="50" resizable="false" closable="false" collapsible="false">
            <h:form>
                <ui:include src="menu_header.xhtml"/>
            </h:form>
        </p:layoutUnit>
        <p:layoutUnit id="center" position="center">
            <h:form id="mainForm" prependId="false">

            </h:form>
        </p:layoutUnit>
        <p:layoutUnit position="south" size="30" resizable="false" closable="false" collapsible="false" style="overflow:hidden">
            <div id="footer" class="ui-widget ui-widget-header ui-corner-all">
                <h:outputText value="#{navMenuBean.footer}" styleClass="defualtTextSize"/>
            </div>
        </p:layoutUnit>
    </p:layout>
</ui:define>

0 个答案:

没有答案
相关问题