so i have a
A.xhtml
<p:tabView id="headOfAccountsId_tabview">
<p:tab title="Main Head Of Accounts" id="mainHeadOfAccountsId_tab">
// completely finished with codes
// here i have done some inputtext fields with jsf validation ,
// and submit button to call action on ajax
// and p:datatable to view only records and user can edit and delete record on ajax
</p:tab>
<p:tab title="Sub Head Of Accounts" id="subHeadOfAccountsId_tab">
// just have open and closing tags of p:tab i meant i will do code later here
</p:tab>
</p:tabView>
and i have an other xhmt file for different purpose on that i am using
B.xhtml
// all the input fields outside the <p:tabView >
// here i have done some inputtext fields with jsf validation ,
// and submit button to call action on ajax
<p:tabView >
<p:tab>
//p:datatable to view only records
</p:tab>
<p:tab>
//p:datatable to view only records
</p:tab>
</p:tabView>
my question is that in both files (A and B) i haved used
<p:ajax event="tabChange" />
but in file A.xhtml when i changed the tab listener does not call method(action method of java class) without
immediate="true"
and in file B.xhtml when i am changing tabs method is calling without
immediate="true"
can any one makes me understand whats happening ? or why/where we use 'immediate' attribute ? should i post my whole code ?