IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JSF Java Discussion :

Naviguer entre les onglets


Sujet :

JSF Java

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    318
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 318
    Par défaut Naviguer entre les onglets
    Bonjour,

    j'ai une page avec des onglets, et chaque onglet est représenté par une page.xhtml ( voir le code ci-après ) et j'aimerai mettre des boutton NEXT (dans chaque page)qui me permettent de passer à la page suivante ( onglet suivant ) et de l'actualiser au même temps.

    primLayout.xhtml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
     
    <p:tabView id="tabView">  
     
                <p:tab id="tab3" title="Instruction">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="instructions.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>  
     
            <!--    <p:tab id="tab1" title="Choosing the Type of Source and Target">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="pageTypeSelectBD.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab> -->
     
                <p:tab id="tab1" title="Connexion source database">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="oracle.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>
     
                <p:tab id="tab5" title="Connexion Target Database">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="teradata.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>
                <p:tab id="tab6" title="Selection table">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="pageTypeSelectTable.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>
     
     
                <p:tab id="tab7" title="Comparator">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="comparator.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>
     
     
                <p:tab id="tab8" title="Report">  
                    <h:panelGrid columns="2" cellpadding="10">  
     
                        <iframe src="pageTypeRapport.xhtml"
                                frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                        </iframe>
     
                    </h:panelGrid>  
                </p:tab>
     
            </p:tabView>
    Voici un exemple de ce que j'aimerai faire http://www.primefaces.org/showcase/ui/wizard.jsf, sauf que je sais pas comment le transposer dans ma pageLayout.xhtml

    Merci de votre aide

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    318
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 318
    Par défaut
    Maintenant j'ai réussi à naviguer entre les onglets, et j'arrive à actualiser la page suivante quand je clique sur "Continue"

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    			<p:wizard widgetVar="wiz" showNavBar="false">
     
    	       <p:tab id="tab1" title="Instruction">  
                                            <h:panelGrid columns="2" cellpadding="10">  
     
                                                <iframe src="instructions.xhtml"
                                                        frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                                </iframe>
     
                                            </h:panelGrid>  
    					<div class="form-buttons">
    						<p:commandButton value="Continue" onclick="wiz.next()" />
     
    					</div>
    	       </p:tab>
    		<p:tab id="tab2" title="Connexion source database">  
                                            <h:panelGrid columns="2" cellpadding="10">  
     
                                                <iframe src="oracle.xhtml"
                                                        frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                                </iframe>
     
                                            </h:panelGrid>  
    					<div class="form-buttons">
    						<p:commandButton value="Continue" onclick="wiz.next()" />
    						<p:commandButton value="Back" onclick="wiz.back()" />
    					</div>
    	       </p:tab>
    		<p:tab id="tab3" title="Connexion Target Database">  
                                            <h:panelGrid columns="2" cellpadding="10">  
     
                                                <iframe src="teradata.xhtml"
                                                        frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                                </iframe>
     
                                            </h:panelGrid>  
    					<div class="form-buttons">
    						<p:commandButton value="Continue" onclick="wiz.next()" />
    						<p:commandButton value="Back" onclick="wiz.back()" />
    					</div>
    		</p:tab>
    		<p:tab id="tab4" title="Selection table">  
                                            <h:panelGrid columns="2" cellpadding="10">  
     
                                                <iframe src="pageTypeSelectTable.xhtml"
                                                        frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                                </iframe>
     
                                            </h:panelGrid>  
    					<div class="form-buttons">
    						<p:commandButton value="Continue" onclick="wiz.next()" />
    						<p:commandButton value="Back" onclick="wiz.back()" />
    					</div>
                    </p:tab>
                   	<p:tab id="tab5" title="Comparator">  
                                           <h:panelGrid columns="2" cellpadding="10">  
     
                                            <iframe src="comparator.xhtml"
                                                    frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                            </iframe>
     
                                            </h:panelGrid>   
    					<div class="form-buttons">
    						<p:commandButton value="Continue" onclick="wiz.next()" />
    						<p:commandButton value="Back" onclick="wiz.back()" />
    					</div>
                    </p:tab>
                   <p:tab id="tab6" title="Report">  
                                        <h:panelGrid columns="2" cellpadding="10">  
     
                                            <iframe src="pageTypeRapport.xhtml"
                                                    frameborder="0" scrolling="auto" align="center" height="500px" width="1000px" >
                                            </iframe>
     
                                        </h:panelGrid>   
    					<div class="form-buttons">
    						<p:commandButton value="Back" onclick="wiz.back()" />
    					</div>
                    </p:tab>
     
    			</p:wizard>

    Voilà

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 02/10/2008, 15h22
  2. Réponses: 1
    Dernier message: 23/05/2008, 20h49
  3. Naviguer dans les onglets en VBA
    Par papaoursold dans le forum IHM
    Réponses: 2
    Dernier message: 30/03/2008, 20h35
  4. le passage des données entre les onglets
    Par jack_1981 dans le forum VB 6 et antérieur
    Réponses: 5
    Dernier message: 16/05/2007, 01h12
  5. Réponses: 2
    Dernier message: 09/11/2006, 22h42

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo