问题描述
我有一个丰富的表格面板,其中包含许多包含 jsp 文件的面板。 我有一个这样的jsp文件:
<rich:panel>
<f:facet name="header">
<h:outputText value="Traitement" />
</f:facet>
<h:panelGroup>
<table style="width: 95%; border-spacing: 5px">
<tr>
<td><h:outputLabel value="Fruit list : " /></td>
<td>
<h:selectOneMenu
id="list_fruit" style="width:288px;"
value="#{myBean.FruitId}">
<f:selectItem itemValue="0" itemLabel="" />
<f:selectItem itemValue = "1" itemLabel = "fruit 1" />
<f:selectItem itemValue = "2" itemLabel = "fruit 2" />
<f:selectItem itemValue = "3" itemLabel = "fruit 3" />
</h:selectOneMenu>
</td>
</tr>
</table>
</h:panelGroup>
</rich:panel>
我的问题是当我选择水果 1 或水果 2 或水果 3 并单击另一个面板时,当我返回此面板时,我有最后一个选择(水果 1 或水果 2 或水果 3)。 当我转到另一个面板并返回 thius 面板时,我想清空用户选择,选择选项必须为空。 如何刷新我的jsp页面侧javascript以删除最后选择的水果,默认情况下选择必须为空
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)