Putting a p:tabView inside an h:form

UI Components for JSF
Post Reply
Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

21 Aug 2011, 20:29

I discovered when I do this, I get an error:

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 get the following message rendered by p:message
The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within
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?
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

21 Aug 2011, 22:35

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

21 Aug 2011, 22:58

OK, thanks. I'm not thrilled with the workaround but I'll live with it.
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests