我有一个非常简单的没有支持 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/