Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7713007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:45:51+00:00 2026-06-01T01:45:51+00:00

Hello i am using primefaces version 3.2 The ui layout which i am using

  • 0

Hello i am using primefaces version 3.2
The ui layout which i am using is
tabview, inside it, i’ve accordion panel, and inside every tab of the accordion, i’ve two forms.

Just like

tabview>tab>accordionpanel>tab>form1 and

tabview>tab>accordionpanel>tab>form2 and so on…

Now, the problem is that the active index action is not called in the above scenario. However, when i remove on of the froms from the accordion panel tab, it is called and works fine.

This is my xhtml tabview code

        <p:tabView id="tabView" activeIndex="#{profileInfoManagedBean.myCurrentTab}" >
            <p:ajax event="tabChange" listener="#{profileInfoManagedBean.tabIsChanged}" />

            <p:tab id="locationInfoTab" title="Location Info">

                <p:accordionPanel id="aPanel">

                    <p:tab id="tab1" title="Country">
                        <h:form id="form1">
                            <p:growl id="growl" life="5000" />

                            <p:messages id="messages"  /> 

                            <h:panelGrid columns="3" cellpadding="5" cellspacing="5">

                                <p:column>
                                    <h:outputLabel for="country"  value="Country: "></h:outputLabel>
                                </p:column>
                                <p:column>
                                    <p:inputText id="country" value="#{profileInfoManagedBean.country.country}" required="true" label="City">

                                        <f:validateLength minimum="5" maximum="20" />
                                        <p:ajax event="blur" update="msg1"></p:ajax>
                                    </p:inputText>
                                </p:column>
                                <p:column>
                                    <p:message id="msg1" for="country" display="icon"></p:message>
                                </p:column>

                            </h:panelGrid>
                            <p:commandButton type="submit" action="#{profileInfoManagedBean.addCountry}" value="Save" ajax="true" ></p:commandButton>

                        </h:form>
                        <p:separator />

                        <h:form id="countryDataTableForm">
                            <p:panel>
                                <p:growl id="messagesww" />
                                <p:confirmDialog id="confirmDialog" message="Are you sure you want to delete the selected row ?"
                                                 header="Deleting Row" severity="alert" widgetVar="confirmation1">
                                    <p:commandButton id="confirm" value="Yes Sure" update="messagesww" oncomplete="confirmation1.hide()"
                                                     action="#{profileInfoManagedBean.deleteObject}" />
                                    <p:commandButton id="decline" value="Not Yet" onclick="confirmation1.hide()" type="button" />
                                </p:confirmDialog>

                                <p:dataTable style="width: 700px;" var="coun" value="#{profileInfoManagedBean.countryList}" selection="#{profileInfoManagedBean.deletingObj}" rowKey="#{coun.countryId}"
                                             paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                             paginator="true" rows="5" rowsPerPageTemplate="10,15,20,25" editable="true">
                                    <p:ajax event="rowEdit" update="@this"
                                            listener="#{profileInfoManagedBean.onEditRow}" />


                                    <p:column headerText="Country">
                                        <p:cellEditor>
                                            <f:facet name="output">
                                                <h:outputText value="#{coun.country}" />
                                            </f:facet>
                                            <f:facet name="input">
                                                <p:inputText value="#{coun.country}" style="width:100%" />
                                            </f:facet>
                                        </p:cellEditor>
                                    </p:column>

                                    <p:column id="inactive" filterBy="#{coun.isActive}"   
                                              headerText="isActive" footerText="exact" 
                                              filterOptions="#{profileInfoManagedBean.isActiveDropDown}"
                                              filterMatchMode="exact">

                                        <p:cellEditor>
                                            <f:facet name="output">
                                                <h:outputText value="#{coun.isActive}"></h:outputText>
                                            </f:facet>
                                            <f:facet name="input">
                                                <h:selectOneMenu value="#{coun.isActive}" >  
                                                    <f:selectItem itemLabel="True" itemValue="true" />  
                                                    <f:selectItem itemLabel="False" itemValue="false" /> 
                                                </h:selectOneMenu> 
                                            </f:facet>
                                        </p:cellEditor>
                                    </p:column>

                                    <p:column headerText="Edit">
                                        <p:rowEditor />
                                    </p:column>

                                    <p:column headerText="Delete">

                                        <p:commandButton type="button" onclick="confirmation1.show()" 
                                                         id="delCountry" title="Delete Country" icon="ui-icon ui-icon-trash" />
                                    </p:column>

                                    <p:column selectionMode="single">
                                        <f:facet name="header">
                                            <h:outputText value="select" />
                                        </f:facet>
                                    </p:column>


                                </p:dataTable>
                            </p:panel>

                        </h:form>
                    </p:tab>

                </p:accordionPanel>

            </p:tab>

            <p:tab id="basicInfoTab" title="Basic Info">
                <p:accordionPanel id="aPanel2">
                    <p:tab id="tab2" title="basic   info">
                        <h:form id="dkk">
                            This is basic info tab.
                        </h:form>
                        <h:form id="ddkk">
                            This is basic info tab.
                        </h:form>
                    </p:tab>
                </p:accordionPanel>
            </p:tab>

        </p:tabView>   




 I've got multiple tabs in the tabview and also multiple tabs in each accordion panel.

    Waiting for the response.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:45:52+00:00Added an answer on June 1, 2026 at 1:45 am

    use

    <p:tab  id="tab1" title="Quick Search"> 
    <p:commandButton   process="tab1"  value="Search"  
     actionListener="#{TTCPage.searchTrackTime}"  id="searchval" update="track"/> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i am using the latest version of artoolkit, and succesfully compiled simplevrml, but
I'm just trying to compile the hello world example of boost.python WITHOUT using all
Hello I am using jQuery UI Accodions By default, the first accordion is shown
I'm trying to build a hello world using GTK, which includes the line: #include
Hello i am using following xml to create some sort of Transparent panel .
I have written simple first stage bootloader which displays Hello world using interrupt to
Hello I am using a tab bar application. I want to reload a view
Hello im using page nation which is amazing but now im trying to print
Hello I am using jquery layout plugin from http://layout.jquery-dev.net/ . my options are following:
I have a class: class MyClass(object): @property def myproperty(self): return 'hello' Using mox and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.