Code: Select all
<h:form>
<p:tabView>
<p:tab title="xx">
some form elements
</p:tab>
<p:tab title="yy">
some form elements
</p:tab>
</p:tabView>
<p:panel>
the form submit button
<p:messages >
</p:panel>
</h:form>
I can make this go away by putting an h:form in every tab, but then I have to manage multiple forms with one submit button. Is what I am doing supposed to work?The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within