【问题标题】:Pressing enter key in rich:suggestionBox in IE causes SCRIPT16389: Unspecified error在 IE 中按 Rich:suggestionBox 中的 Enter 键会导致 SCRIPT16389:未指定的错误
【发布时间】:2014-10-07 09:24:37
【问题描述】:

我有一个 JSF 页面

 <a4j:form id="form1">
   <h:inputText id="input1"></h:inputText>
   <rich:suggestionBox suggestionAction="someAction" for="input1">
    <h:column>
      <h:outputText value="#{bean.value}" />
    </h:column>
   <f:param value="someValue" name="someName"></f:param>
  </rich:suggestionBox>
  <a4j:commandLink id="link1" action="#{someBean.someAction}" reRender="form1"/>
 </a4j:form>

命令链接设置为 Enter 键的默认操作。 如果我在inputTextbox中输入值并回车,不让建议框绘制,ie 8的状态栏出现jquery脚本错误。

我尝试通过删除 form1 的重新渲染来解决它,它已解决,或者我让建议框绘制然后按 Enter。 是否有任何解决方案我不需要删除 form1 的重新渲染。

错误:

faces/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/jquery/jquery.js
SCRIPT16389: Unspecified error. 
jquery.js, line 423 character 143

【问题讨论】:

  • 可能是 jQuery 中的一个错误,第 423 行是什么?
  • var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body. clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+( self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left};}
  • 看起来像#4996

标签: jquery jsf richfaces


【解决方案1】:

因为这似乎是建议框后面的脚本中的错误。 我只是通过在热键(“返回”)上设置 1 秒的超时来解决问题。 这为建议框后面的脚本提供了时间来完成它们的处理,以便在 1 秒后,返回键上的操作可以完美处理。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 2014-02-20
    • 2012-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多