2 Replies Latest reply on Feb 25, 2008 3:31 PM by Sergey Smirnov

    Having 357 input fields in 6 tabs. How inputs get submitted

    Martin Jozef Newbie

      Hello everyone.
      I have this real life example where
      I have 357 form inputs spread out throughout 6 tabs. there is some
      ajax support used inside the tabs, and the user is free to move between the tabs freely.

      My Question is.. what is happening to those inputs, does all 357 fields get submitted every time we switch between tabs, or perform ajax call to a backing bean while being inside one of the tabs?

      I would hope that only the rendered tab is being submitted since the tab switching is set as "SERVER" side.
      Can anyone shed some light on this.
      Is is practical to have single <h:form> tag encapsulating when
      we have many tabs with huge amounts of input fields.

      I already know that having individual <h:form> for every tab will not save inputs to my backing bean between tab switching.

      Is this efficient for large amounts of Tabs with large amount of input fields

      <h:form>
      
      <tabPanel>
       <tab>
       <ui:import src="etc" />
       </tab>
      
       <tab>
       <ui:import src="etc" />
       </tab>
      
       <tab>
       <ui:import src="etc" />
       </tab>
      
      </tabPanel>
      
      </h:form>