且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

命令按钮不提交“输入”仅在IE中按下< 9

更新时间:2022-11-01 17:27:36

如果只有表格,这是一个MSIE特定的异常一个< input type =text> 字段。唯一的解决方法是添加另一个< input type =text> 字段,该字段由CSS隐藏 display:none;

This is a MSIE specific anomaly in case of forms with only one <input type="text"> field. The only fix is to add another <input type="text"> field which is hidden by CSS display: none;.

<h:form id="innerHeaderForm1">
    <h:inputText value="#{searchBar.eventname}" />
    <h:inputText style="display: none;" />
    <h:commandButton action="#{searchBar.search1}" value="click1"/>
</h:form>

此问题与JSF无关。