IE 11的日期选择器问题(使用JavaScript、JSF)在刷新后有效,但在刷新前无效';T
我在IE 11的日期选择器问题(使用JavaScript、JSF)在刷新后有效,但在刷新前无效';T,javascript,jsf,Javascript,Jsf,我在jsf的xhtml文件中为datepicker使用Javascript。它在Firefox中运行良好,但在IE11上不起作用 <h:panelGrid id="expirationPanel"> <h:selectOneRadio id=" "layout=" " style="height:75px;" value="#{ManagedBean.xxxx}">
jsf
的xhtml文件中为datepicker
使用Javascript。它在Firefox中运行良好,但在IE11上不起作用
<h:panelGrid id="expirationPanel">
<h:selectOneRadio id=" "layout=" " style="height:75px;" value="#{ManagedBean.xxxx}">
<f:selectItem itemValue="no" itemLabel=""/>
<f:selectItem itemValue="yes" itemLabel=""/>
<a4j:support event="onclick" action="#{ManagedBean.yyyy}" immediate="true" oncomplete="reRenderexPanel()"/>
</h:selectOneRadio>
<h:panelGrid id="expdPanel" columns="1" style="height:70px;">
<div style="margin-top:8px;">
<h:panelGrid id="zzzz" columns="1" style="height:22px;">
<h:outputText value="#{bundle.cet_never}" style="color:black;font-size:12px;" />
</h:panelGrid>
</div>
<h:panelGrid id="ex" columns="2" style="height:40px;">
<r:calendar value="#{ManagedBean.ed}" id="ed" datePattern="yyyy-MM-dd" showApplyButton="false" locale="en_US" enableManualInput="true" converter="dateConverter"
disabled="#{ManagedBean.ieDisabled()}">
<f:validator validatorId="checkvaliddate" />
<f:attribute name="butClick" value="createUserForm:expirationDate:butClick" />
</r:calendar>
<h:message for="exDate" />
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
当我更改单选按钮时,有两个单选按钮在刷新后不起作用。它在IE11中起作用。我发现您没有刷新问题的两个可能原因:
- 立即属性设置为true会导致JSL生命周期跳过验证和更新模型阶段
- 难道你不能让jsf框架本身使用reRender来更新expirationPanel组件,而不是由JSOnComplete来完成吗
单击无线基站时,ManagedBean.yyyy操作是否确实执行?当单击单选btn时,IE浏览器(F12)的javascript控制台中是否有错误消息?是的,当单击单选按钮时会执行该错误消息。问题是,它与其他浏览器(如Firefox、Chrome、IE5、IE6等)一起工作正常,。。。但它不适用于IE11当我选择日期选择器单选按钮并参考页面时,有两个单选按钮,然后日历出现,但当我选择其他,然后选择日期选择器单选按钮并单击日期选择器图像时,则没有出现。