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 8572385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:59:48+00:00 2026-06-11T18:59:48+00:00

when i open my pop up and i change the selected tab, if i

  • 0

when i open my pop up and i change the selected tab, if i close this popup and open again the selected tab as the same.

How always reset when this popup is open ?

and which the best solution for avoid double elevator in the second screenshot ?

view code:

        <p:dialog id="dialog" rendered="true"
            header="#{gestSoftware.action} Configuration des produits"
            widgetVar="confProd" resizable="false" showEffect="clip"
            hideEffect="fold">

            <h:panelGrid id="display" columns="2" cellpadding="4">



                <p:layout style="min-width:900px;min-height:600px;" id="layout">

                    <p:layoutUnit position="north" style="text-align:center;">

                        <p:panelGrid>
                            <p:row>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Reference"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Indice Majeur"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Indice Mineur"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center" colspan="2"><h:outputText value="Modele"/></p:column>
                            </p:row>
                            <p:row>

                                <p:column>
                                    <p:inputText
                                        value="#{gestConfigurationProductBean.referenceConfProduct}" />
                                </p:column>

                                <p:column>
                                    <p:inputText
                                        value="#{gestConfigurationProductBean.majorIndexConfProduct}" />
                                </p:column>
                                <p:column>
                                    <p:inputText
                                        value="#{gestConfigurationProductBean.minorIndexConfProduct}" />
                                </p:column>
                                <p:column colspan="2">
                                    <p:selectOneMenu
                                        value="#{gestConfigurationProductBean.selectedProductConfModel}">

                                        <f:selectItems
                                            value="#{gestConfigurationProductBean.productConfModelList}"
                                            var="productConf" itemLabel="#{productConf.reference}"
                                            itemValue="#{productConf}" />
                                        <f:converter converterId="productConfModelConverter" />
                                    </p:selectOneMenu>
                                </p:column>

                            </p:row>

                            <p:row>

                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Identifiable"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Etat"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Famille"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Alimentation"/></p:column>
                                <p:column styleClass="ui-widget-header"
                                    style="text-align:center"><h:outputText value="Fiche Suiveuse"/></p:column>
                            </p:row>

                            <p:row>


                                <p:column>
                                    <p:selectBooleanCheckbox
                                        value="#{gestConfigurationProductBean.identifiableConfProduct}" />
                                </p:column>

                                <p:column>
                                    <p:selectOneMenu
                                        value="#{gestConfigurationProductBean.stateConfProduct}">
                                        <f:selectItem itemLabel="actif" itemValue="1" />
                                        <f:selectItem itemLabel="inactif" itemValue="0" />

                                    </p:selectOneMenu>
                                </p:column>
                                <p:column>
                                    <p:selectOneMenu
                                        value="#{gestConfigurationProductBean.selectedProductFamily}">

                                        <f:selectItems
                                            value="#{gestConfigurationProductBean.productFamilyList}"
                                            var="productFam" itemLabel="#{productFam.name}"
                                            itemValue="#{productFam}" />
                                        <f:converter
                                            converterId="configurationProductFamilyConverter" />
                                    </p:selectOneMenu>
                                </p:column>
                                <p:column>
                                    <p:selectOneMenu
                                        value="#{gestConfigurationProductBean.selectedProductSupply}">
                                        <f:selectItem itemLabel="" itemValue="" />
                                        <f:selectItems
                                            value="#{gestConfigurationProductBean.productSupplyList}"
                                            var="productSupply" itemLabel="#{productSupply.name}"
                                            itemValue="#{productSupply}" />
                                        <f:converter converterId="productSupplyConverter" />
                                    </p:selectOneMenu>
                                </p:column>

                                <p:column>
                                    <p:selectOneMenu
                                        value="#{gestConfigurationProductBean.selectedFollowingFormModel}">
                                        <f:selectItem itemLabel="" itemValue="" />
                                        <f:selectItems
                                            value="#{gestConfigurationProductBean.followingFormModelList}"
                                            var="follFormModel" itemLabel="#{follFormModel.name}"
                                            itemValue="#{follFormModel}" />
                                        <f:converter converterId="followingFormModelConverter" />
                                    </p:selectOneMenu>
                                </p:column>

                            </p:row>
                        </p:panelGrid>

                    </p:layoutUnit>

                    <p:layoutUnit position="center" size="200px">
                        <p:tabView id="tabViewElement" dynamic="true" activeIndex="0">
                            <p:ajax event="tabChange"
                                Listener="#{gestConfigurationProductBean.onTabChange}"
                                update="tabViewElement" />

                            <p:tab id="idTabElementView" title="Elements Sectionnes">

                                <p:scrollPanel style="width:100%;height:100%">
                                    <p:dataTable id="productConfs" var="productConf"
                                        value="#{gestConfigurationProductBean.productConfsList}"
                                        rowKey="#{productConf.idProductConf}">

                                        <f:facet name="header">
                                            <h:outputText value="ELEMENTS" />
                                        </f:facet>

                                        <p:column headerText="Reference">
                                            <h:outputText value="#{productConf.reference}" />
                                        </p:column>

                                        <p:column headerText="Indice majeur">
                                            <h:outputText value="#{productConf.majorIndex}" />
                                        </p:column>

                                        <p:column headerText="Indice majeur">
                                            <h:outputText value="#{productConf.minorIndex}" />
                                        </p:column>

                                        <p:column headerText="Designation">
                                            <h:outputText
                                                value="#{productConf.productConfModel.reference}" />
                                        </p:column>


                                        <p:column headerText="Identifiable">
                                            <p:selectBooleanCheckbox disabled="true"
                                                value="#{productConf.identifiable}" />
                                        </p:column>


                                    </p:dataTable>
                                </p:scrollPanel>
                            </p:tab>

                            <p:tab id="tabSelectedElement" style="padding:none"
                                title="Choisir Elements">
                                <p:scrollPanel style="width:100%;height:100%">
                                    <p:dataTable id="cardsElements" var="cardElement"
                                        value="#{gestConfigurationProductBean.cardElementList}"
                                        rowKey="#{cardElement.idProductConf}"
                                        selection="#{gestConfigurationProductBean.selectedElement}"
                                        selectionMode="single">

                                        <f:facet name="header">
                                            <h:outputText value="ELEMENTS" />
                                        </f:facet>

                                        <p:column headerText="Selection">
                                            <p:selectBooleanCheckbox
                                                value="#{cardElement.selectedElement}">
                                                <p:ajax
                                                    listener="#{gestConfigurationProductBean.checkBoxElement}" />
                                            </p:selectBooleanCheckbox>
                                        </p:column>

                                        <p:column headerText="Reference">
                                            <h:outputText value="#{cardElement.reference}" />
                                        </p:column>

                                        <p:column headerText="Indice majeur">
                                            <h:outputText value="#{cardElement.majorIndex}" />
                                        </p:column>

                                        <p:column headerText="Indice majeur">
                                            <h:outputText value="#{cardElement.minorIndex}" />
                                        </p:column>

                                        <p:column headerText="Designation">
                                            <h:outputText
                                                value="#{cardElement.productConfModel.reference}" />
                                        </p:column>


                                        <p:column headerText="Identifiable">
                                            <p:selectBooleanCheckbox disabled="true"
                                                value="#{cardElement.identifiable}" />
                                        </p:column>
                                    </p:dataTable>
                                </p:scrollPanel>
                            </p:tab>
                        </p:tabView>
                    </p:layoutUnit>

                    <p:layoutUnit position="south" style="margin-top:10px;">
                        <p:tabView id="softwareTabView">
                            <p:ajax event="tabChange"
                                Listener="#{gestConfigurationProductBean.onTabChange}"
                                update="softwareTabView" />
                            <p:tab id="idSoftwareView" title="Logiciels selectionnes">
                                <p:scrollPanel style="width:100%;height:100%">
                                    <p:dataTable id="softwares" var="software"
                                        value="#{gestConfigurationProductBean.softwareList}"
                                        rowKey="#{software.idSoftware}">

                                        <f:facet name="header">
                                            <h:outputText value="LOGICIELS" />
                                        </f:facet>

                                        <p:column headerText="Nom">
                                            <h:outputText value="#{software.name}" />
                                        </p:column>

                                        <p:column headerText="Version">
                                            <h:outputText value="#{software.version}" />
                                        </p:column>

                                    </p:dataTable>
                                </p:scrollPanel>
                            </p:tab>

                            <p:tab id="idSelectedSoftwareView" title="Choisir Logiciels"
                                height="100%">
                                <p:scrollPanel style="width:100%;height:100%">
                                    <p:dataTable id="softwaresSelected" var="softwareSelected"
                                        value="#{gestConfigurationProductBean.softwareElementList}"
                                        rowKey="#{softwareSelected.idSoftware}">

                                        <f:facet name="header">
                                            <h:outputText value="LOGICIELS" />
                                        </f:facet>

                                        <p:column headerText="Selection">
                                            <p:selectBooleanCheckbox
                                                value="#{softwareSelected.selectedSoftware}">
                                                <p:ajax
                                                    listener="#{gestConfigurationProductBean.checkBoxSoftware}" />
                                            </p:selectBooleanCheckbox>
                                        </p:column>
                                        <p:column headerText="Nom">
                                            <h:outputText value="#{softwareSelected.name}" />
                                        </p:column>

                                        <p:column headerText="Version">
                                            <h:outputText value="#{softwareSelected.version}" />
                                        </p:column>
                                    </p:dataTable>
                                </p:scrollPanel>
                            </p:tab>
                        </p:tabView>
                    </p:layoutUnit>
                </p:layout>
            </h:panelGrid>
            <h:panelGrid columns="2">
                <p:commandButton value="Editer"
                    actionListener="#{gestConfigurationProductBean.buttonForm}"
                    update="message,productConfModels" />

                <p:commandButton value="Annuler"
                    actionListener="#{gestConfigurationProductBean.quit}" />
            </h:panelGrid>
        </p:dialog>

enter image description here
enter image description here

Thank you !

  • 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-11T18:59:49+00:00Added an answer on June 11, 2026 at 6:59 pm

    To make sure a tab is selected when opening the dialog, you can use the onShow attribute of the dialog.

    <p:dialog onShow="tabview.select(1)">
        <p:tabView widgetVar="tabview">
            <p:tab>
                This is tab 1
            </p:tab>
            <p:tab>
                This is tab 2
            </p:tab>
        </p:tabView>
    </p:dialog>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

window.open() why window.open always pop up with IE , I set firefox is the
Using JavaScript I open the pop window and parent window is inactive at this
I'm trying to open a pop-up menu from a NSToolbarItem. I tried following this
I wonder if it's possible to show a warning or open a pop-up, which
Does anybody know if it's possible to open a pop-up form Input Mask which
I open a pop-up window using following code in main.html function openwindow(url) { window.open(url,
At a certain time each day, I'd like my browser to pop open a
When I open my SharePoint site collection everytime I am getting the pop up
Is there any way to pop-up TIPS and pop-over any other windows open? I
The following javascript opens a pop-up in Firefox, Safari, IE, and Google Chrome: window.open(http://google.com,

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.