更新时间: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无关。