Oracle ADF af :inputFile and af:commandButton give JS error on IE 9

标签 oracle oracle-adf jspx

我有一个非常简单的没有支持 bean 的 jspx:

<f:view>
    <af:document id="d1" title="Home">
      <af:form id="f1" usesUpload="true">
        <af:pageTemplate value="#{bindings.pageTemplateBinding.templateModel}" id="pt1">
          <f:facet name="content">
          <af:group>
          <af:inputFile label="" id="logoImageFile" />
            <af:commandButton text="Up" />
          </af:group>

          </f:facet>
        </af:pageTemplate>
      </af:form>
    </af:document>
  </f:view>

当我在选择要上传的文件后单击 commandButton 时,IE 9 立即抛出一般 JS 错误。其他浏览器 [IE 8、FF、Chrome] 运行良好。即使我将 autosubmit=true 放在 inputFile 中,它也会抛出错误,除非我注释掉 commandButton

注意:这可能是一个组件问题,但是想知道你们是否找到了解决方法/修复/补丁。我正在使用 Jdev 11.1.1.5

最佳答案

为按钮设置 partialSubmit="true"以避免重新加载整个页面

关于Oracle ADF af :inputFile and af:commandButton give JS error on IE 9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13560401/

相关文章:

sql - 在 Oracle 中执行动态 SQL 查询

java - 由于不同的类加载器,在同一个耳朵中从两个不同的 war 中加载相同的类时出现 ClassCastException

java - 如何从 JSPX 输出 <option selected ="true">?

sql - 查询中行的固定值

java - 从字符串中删除随机表达式

sql - 需要帮助来理解 SQL 查询 (oracle10g)

java - adf inputText 中的 Shortdesc 工具提示中的多行

java - 在 selectManyChoice 中设置选定的值

jspx - 实体 "copy"已被引用,但未在 jspx 中声明

java.lang.ClassNotFoundException : com. 太阳.faces.config.ConfigureListener