Use forms with tab view

UI Components for JSF
Post Reply
olpf
Posts: 84
Joined: 25 Feb 2013, 16:49
Location: GER

26 Feb 2015, 18:10

Hi,

I have a tabView and each show an individual search mask defined by a data model. So each tab can have different input elements and has its own "do search" button. Do I need for each tab an own form? Probably yes I would say. But then I have to nest forms because the tabView also needs a form. Is the nesting in this case ok?

Regards
Oliver
JBoss AS, Primefaces 5, Primefaces extensions 4.0.0

Jan Eckert
Posts: 84
Joined: 11 Sep 2014, 10:13
Location: Brussels, Belgium

05 Mar 2015, 11:55

Hi!

No, you cannot nest forms. Never. Simply because nested forms are illegal HTML and wont work (or at least unexpectedly).

Give your tabs a form each and handle the tabChange-event yourself!
Primefaces 6.1+
Wildfly 11

olpf
Posts: 84
Joined: 25 Feb 2013, 16:49
Location: GER

05 Mar 2015, 12:09

Ok thanks. This I have done now.
JBoss AS, Primefaces 5, Primefaces extensions 4.0.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests