我需要跳过h:form
内部的输入组件,因为它仅保留在那里仅用于纯粹的表示需要&不会向任何bean字段提交值。提交表单时如何禁用其提交以及其他表单输入?防止p:selectOneListbox被提交到h:表单
<h:form>
<!--other input components-->
<p:selectOneListbox id="deptsSel">
<f:selectItems value="#{listRetriever.list}"
var="dept" itemLabel="#{namesDirectory.getName(dept)}" itemValue="#{dept}" />
</p:selectOneListbox>
<!--other input components-->
</h:form>
我省略了value属性为p:selectOneListbox
,但在提交它仍然给验证错误的形式:“”
看起来像http://stackoverflow.com/questions/12614882/how-to-exclude-child-component-in-ajax-update-of-a-parent-component的副本。 – 2014-09-30 13:51:39
你为什么这么担心?如果你没有在你的bean中使用这个组件,那就把它放在一边吧 – Pellizon 2014-09-30 16:48:46
你用什么来提交表单,一个命令按钮? – Pellizon 2014-09-30 16:52:03