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

Java EE Discussion :

[PrimeFaces] Problème DataExporter


Sujet :

Java EE

  1. #1
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Novembre 2012
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Novembre 2012
    Messages : 22
    Points : 17
    Points
    17
    Par défaut [PrimeFaces] Problème DataExporter
    Bonjour

    je viens tout just d'essayer d'integrer le dataexporter dans mon code! mais ca ne marche pas!

    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
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    	<p:dataTable id="network" var="car" paginator="true" rows="5"
    							value="#{WcellMB.treeSelection}" 
    							rendered="#{not empty WcellMB.treeSelection}">
    							<f:facet name="head">  
                RESULTAT
            </f:facet>
    							<p:column headerText="Provider" id="p" rendered="#{WcellMB.testProvider}">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="r" rendered="#{WcellMB.testRnc}">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="WBTS" id="wb" rendered="#{WcellMB.testWbts}" >  
                #{car.wbts}  
            </p:column>
     
    							<p:column headerText="CI" id="c" rendered="#{WcellMB.testCi}">  
                #{car.ci}  
            </p:column>
     
            <p:column headerText="CGI" id="cgi" rendered="#{WcellMB.testCgi}">  
                #{car.cgi}  
            </p:column>
            <p:column headerText="Cellules" id="nc" rendered="#{WcellMB.testNomCell}">  
                #{car.nomCell}  
            </p:column>
     
            <p:column headerText="Label" id="Lab" rendered="#{WcellMB.testLabel}">  
                #{car.label}  
            </p:column>
     
            <p:column headerText="Frequency-Band" id="freq" rendered="#{WcellMB.testFreq}">  
                #{car.frequency_band}  
            </p:column>
     
            <p:column headerText="RAC" id="rac" rendered="#{WcellMB.testRac}">  
                #{car.rac}  
            </p:column>
            <p:column headerText="LAC" id="lac" rendered="#{WcellMB.testLac}">  
                #{car.lac}  
            </p:column>
            <p:column headerText="Network-Id" id="Nid" rendered="#{WcellMB.testNet}">  
                #{car.networkid}  
            </p:column> 
     
    						</p:dataTable>
    						<h:panelGrid columns="2" style=" text-align: center;">  
        <p:panel header="Export All Data" style=" text-align: center;">  
            <p:commandLink>  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" />  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm"/>  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" />  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" />  
            </p:commandLink>  
        </p:panel>  
     
        <p:panel header="Export Page Data" style=" text-align: center;">  
            <p:commandLink>  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" pageOnly="true"/>  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm" pageOnly="true"/>  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" pageOnly="true"/>  
            </p:commandLink>  
     
            <p:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" pageOnly="true"/>  
            </p:commandLink>  
        </p:panel>  
    </h:panelGrid>
    Aprés une longue recherche sur internet, j'ai trouvé qu'il faut changé le <h:commandlink> de cet exemple
    http://www.primefaces.org/showcase-labs/ui/exporter.jsf
    par <p:commandlink>. Mais ca coince toujours! j'ai ajouté les jar necessaires pour l'export Excel
    quelqu'un peut m'aider.

  2. #2
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Bonjour,
    Qu'est ce qui coince? peut on avoir la trace d'erreur?
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  3. #3
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Novembre 2012
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Novembre 2012
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    y a aucune erreur!
    En fait la datatable se trouve dans un pop-up et elle est obtenue apres avoir cliqué sur un certain boutton!
    et en essayant de faire l'export, le pop-up disparait !

    j'ai essayé de voir avec firebug! il ne retrouve pas certains fichiers CSS indexé dans le <head> par
    <link type="text/css" rel="stylesheet"
    href="#{request.contextPath}/css/default.css" />
    <link type="text/css" rel="stylesheet"
    href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />

  4. #4
    Membre expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Points : 3 938
    Points
    3 938
    Par défaut
    Bonjour,
    Peux tu nous montrer le code complet de ta page? tu peux aussi afficher tout le code source HTML généré de ta page pour voir si ça correspondait à tes attentes, en d'autres termes si les ressources de ta page ont bien été générés dans les répertoires attendus par JSF.
    Vous avez peut être hâte de réussir et il n'y a rien de mal à cela...
    mais la patience est aussi une vertu; l'échec vous l'enseignera certainement..."

  5. #5
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Novembre 2012
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Novembre 2012
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    bonjour

    le code de la page est
    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
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:p="http://primefaces.org/ui">
     
    <f:view contentType="text/html">
    	<h:head>
    		<f:facet name="first">
    			<title>HOME</title>
    		</f:facet>
    		<style type="text/css">
    body {
    	background: #990000;
    }
     
    .ui-widget {
    	font-size: 75%;
    }
     
    .ui-dock-bottom {
    	width: 75%;
    	top: 20px;
    	position: fixed;
    	padding-top: 200px;
    	left: auto;
    	right: auto;
    }
     
    .ui-dock-container-bottom {
    	position: fixed;
    	height: 0px;
    	padding-left: 20px;
    }
     
    a.ui-dock-item-bottom {
    	display: block;
    	width: 40px;
    	bottom: 30px;
    	position: absolute;
    	text-align: center;
    	text-decoration: none;
    }
     
    .ui-dock-item-bottom span {
    	display: none;
    	padding-left: 20px;
    }
     
    .ui-dock-item-bottom img {
    	border: none;
    	margin: 20px 10px 10px;
    	width: 100%;
    }
    </style>
    		<link type="text/css" rel="stylesheet"
    			href="#{request.contextPath}/css/default.css" />
    		<link type="text/css" rel="stylesheet"
    			href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
    	</h:head>
     
    	<h:body>
     
    		<p:layout fullPage="true">
     
    			<!--  Bannière 12% -->
    			<p:layoutUnit position="north" size="100"
    				style="margin:25px 50px 75px 100px;">
    				<!-- <h:outputText value="Top unit content." /> -->
    				<p:graphicImage value="/images/header_red_global.jpg" width="100%"
    					height="100%"></p:graphicImage>
    			</p:layoutUnit>
     
    			<!--  Bottom 3%-->
    			<p:layoutUnit position="south" size="3%"
    				style=" margin:25px 50px 75px 100px; text-align: center;">
    				<h:outputText value="Copyright © : NS@Tunisana 2012" />
    			</p:layoutUnit>
     
    			<!--  Menu 15%-->
    			<p:layoutUnit position="west" size="200"
    				style="margin:25px 50px 75px 100px;">
     
    			</p:layoutUnit>
     
    			<p:layoutUnit position="center" style="margin:25px 50px 75px 100px;">
    				<h:form id="form">
    					<p:messages id="texto" showDetail="true" autoUpdate="true"
    						closable="true" />
    					<p:accordionPanel activeIndex="-1">
    						<p:tab title="Search">
    							<h:panelGrid columns="9" columnClasses="column" cellpadding="3">
    								<h:outputText value="Provider: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch1}">
    									<!-- <f:validateRegex pattern="[A-Z]*"/>  -->
    								</p:inputText>
    								<h:outputText value="Bsc: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch2}">
    									<!--  <f:validateRegex pattern="[[A-Z]*[0-9]*]*"/>  -->
    								</p:inputText>
    								<h:outputText value="Nom de Cellule: "
    									style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch3}">
    									<!-- <f:validateRegex pattern="[[A-Z]*[0-9]*]*"/>  -->
    								</p:inputText>
    								<h:outputText value="CI: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch4}">
    									<f:validateRegex pattern="[0-9]*" />
    								</p:inputText>
    								<p:commandButton actionListener="#{WcellMB.rechercher}"
    									icon="ui-icon-search" update=":form" />
    							</h:panelGrid>
    						</p:tab>
    					</p:accordionPanel>
    					<p:accordionPanel activeIndex="-1">
    						<p:tab title="Operation">
    							<h:panelGrid>
    								<!-- <h:form id="fd"> -->
    									<p:commandButton id="basic" value="Operation Dialog"
    										onclick="dlg.show();" type="button" />
    													<p:dialog id="basicDialog" header="Basic Dialog" widgetVar="dlg"
    			width="1000" height="800" dynamic="true" maximizable="true"
    			minimizable="true" draggable="false" showEffect="fade" 
    			hideEffect="fade">
    			<p:tabView>
    			<p:tab title="Design" style=" text-align: center;">
    			<p:layout id="layout" style="width:900px;height:700px">
    				<p:layoutUnit id="center" position="center">
    					<p:layout>
    						<p:layoutUnit id="inner_south" position="south" size="50%">
    						<!--  <p:outputPanel id="Area"> -->
    						<h:form id="toupdate">
    							 <h:outputText value="!!!RESULTAT!!!"
    								rendered="#{empty WcellMB.treeSelection and empty WcellMB.historique}" style="font-size:24px;" /> 
     
     
    						<p:dataTable id="network" var="car" paginator="true" rows="5"
    							value="#{WcellMB.treeSelection}" 
    							rendered="#{not empty WcellMB.treeSelection}">
    							<f:facet name="head">  
                Last Update
            </f:facet>
    							<p:column headerText="Provider" id="p" rendered="#{WcellMB.testProvider}">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="r" rendered="#{WcellMB.testRnc}">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="WBTS" id="wb" rendered="#{WcellMB.testWbts}" >  
                #{car.wbts}  
            </p:column>
     
    							<p:column headerText="CI" id="c" rendered="#{WcellMB.testCi}">  
                #{car.ci}  
            </p:column>
     
            <p:column headerText="CGI" id="cgi" rendered="#{WcellMB.testCgi}">  
                #{car.cgi}  
            </p:column>
            <p:column headerText="Cellules" id="nc" rendered="#{WcellMB.testNomCell}">  
                #{car.nomCell}  
            </p:column>
     
            <p:column headerText="Label" id="Lab" rendered="#{WcellMB.testLabel}">  
                #{car.label}  
            </p:column>
     
            <p:column headerText="Frequency-Band" id="freq" rendered="#{WcellMB.testFreq}">  
                #{car.frequency_band}  
            </p:column>
     
            <p:column headerText="RAC" id="rac" rendered="#{WcellMB.testRac}">  
                #{car.rac}  
            </p:column>
            <p:column headerText="LAC" id="lac" rendered="#{WcellMB.testLac}">  
                #{car.lac}  
            </p:column>
            <p:column headerText="Network-Id" id="Nid" rendered="#{WcellMB.testNet}">  
                #{car.networkid}  
            </p:column> 
     
    						</p:dataTable>
    			<h:panelGrid columns="2" style=" text-align: center;" rendered="#{not empty WcellMB.treeSelection }">  
        <p:panel header="Export All Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm"/>  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" />  
            </h:commandLink>  
        </p:panel>  
     
        <p:panel header="Export Page Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" pageOnly="true" />  
            </h:commandLink>  
        </p:panel>  
    </h:panelGrid>  			
     
    		<p:dataTable id="network1" var="car" paginator="true" rows="5"
    							value="#{WcellMB.historique}" 
    							rendered="#{not empty WcellMB.historique}">
    							<f:facet name="head">  
                                  Historique
                                </f:facet>
    							<p:column headerText="Provider" id="pr" rendered="#{WcellMB.testProvider}">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="rn" rendered="#{WcellMB.testRnc}">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="WBTS" id="wbt" rendered="#{WcellMB.testWbts}" >  
                #{car.wbts}  
            </p:column>
     
    							<p:column headerText="CI" id="ccc" rendered="#{WcellMB.testCi}">  
                #{car.ci}  
            </p:column>
     
            <p:column headerText="CGI" id="cgiii" rendered="#{WcellMB.testCgi}">  
                #{car.cgi}  
            </p:column>
            <p:column headerText="Cellules" id="ncl" rendered="#{WcellMB.testNomCell}">  
                #{car.nomCell}  
            </p:column>
     
            <p:column headerText="Label" id="Labe" rendered="#{WcellMB.testLabel}">  
                #{car.label}  
            </p:column>
     
            <p:column headerText="Frequency-Band" id="freqb" rendered="#{WcellMB.testFreq}">  
                #{car.frequency_band}  
            </p:column>
     
            <p:column headerText="RAC" id="raccc" rendered="#{WcellMB.testRac}">  
                #{car.rac}  
            </p:column>
            <p:column headerText="LAC" id="laccc" rendered="#{WcellMB.testLac}">  
                #{car.lac}  
            </p:column>
            <p:column headerText="Network-Id" id="Netid" rendered="#{WcellMB.testNet}">  
                #{car.networkid}  
            </p:column> 
     
    						</p:dataTable>
    						<h:panelGrid columns="2" style=" text-align: center;" rendered="#{not empty WcellMB.historique}">  
        <p:panel header="Export All Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network1" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network1" fileName="rnm"/>  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network1" fileName="rnm" />  
            </h:commandLink>  
        </p:panel>  
     
        <p:panel header="Export Page Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network1" fileName="rnm" pageOnly="true" />  
            </h:commandLink>  
        </p:panel>  
    </h:panelGrid>  
     
    						</h:form>
    						</p:layoutUnit>
    						<p:layoutUnit id="inner_west" position="east" size="35%">
    						<p:growl id="sages" showDetail="true" escape="false" />
    						<!-- <p:accordionPanel activeIndex="-1">
    								<p:tab title="date"> -->
    								<p:panel header="Historique" width="300"> 
     
    									<h:panelGrid columns="1" columnClasses="column" cellpadding="8"
    										width="270" style=" text-align: center;">
    										 <h:outputText value="Date :" />
    										 <p:inplace id="date1" label="jj/mm/aaaa">  
                    						<p:inputText  value="#{WcellMB.date1}" >
                    						 <f:validateRegex pattern="[0-3][0-9]/[0-3][0-9]/[0-9]*"/>    
                							</p:inputText>
                							</p:inplace>  
                							 <p:inplace id="date2" label="jj/mm/aaaa">  
                                             <p:inputText  value="#{WcellMB.date2}" >
                                              <f:validateRegex pattern="[0-3][0-9]/[0-3][0-9]/[0-9]*"/>    
                							</p:inputText>  
                                             </p:inplace>  
    										<p:commandButton icon="ui-icon-search" title="Please verify date!" update="sages,layout" 
    													actionListener="#{WcellMB.historique}"
    													id="btnHistorique" style=" text-align: center;"/>
    									 </h:panelGrid> </p:panel>
    								<!--</p:tab> 
    							</p:accordionPanel>-->
    						</p:layoutUnit>
     
    						<p:layoutUnit id="inner_center" position="center">	
    						<p:panel header="Last Update">
    							<p:growl id="messages" showDetail="true" escape="false" />
    							 <p:tree value="#{WcellMB.root}" var="node" 
    													selectionMode="multiple" selection="#{WcellMB.selectedNodes}" 
    													id="treeMultiple">
     
    													<p:treeNode>
    														<h:outputText value="#{node}"  />
    													</p:treeNode>
    												</p:tree>
    												<p:commandButton icon="ui-icon-search" update="messages,layout" 
    													actionListener="#{WcellMB.displaySelectedMultiple}"
    													id="btnDisplay" style=" text-align: center;"/>
     
    													 </p:panel>
     
    						</p:layoutUnit>
    					</p:layout>
    				</p:layoutUnit>
     
    			</p:layout>
    			</p:tab>
    			<p:tab title="Indicator" style=" text-align: center;">
    					<p:layoutUnit id="center1" position="center" >
                       <p:layout id="layout1">
                          <p:layoutUnit id="inner_north1" position="north" size="100">inner north</p:layoutUnit>
                          <p:layoutUnit id="inner_south1" position="south" size="100">inner south</p:layoutUnit>
                          <p:layoutUnit id="inner_west1" position="west" size="100">inner west</p:layoutUnit>
                          <p:layoutUnit id="inner_east1" position="east" size="100">inner east</p:layoutUnit>
                          <p:layoutUnit id="inner_center1" position="center" >
                          <p:panel header="Last Update">
    							<p:growl id="mg" showDetail="true" escape="false" />
    							 <p:tree value="#{WcellMB.root1}" var="node" 
    													selectionMode="multiple" selection="#{WcellMB.selectedInd}" 
    													id="treeMultiple1">
     
    													<p:treeNode>
    														<h:outputText value="#{node}"  />
    													</p:treeNode>
    												</p:tree>
    												<p:commandButton icon="ui-icon-search" update="mg,layout1" 
    													actionListener="#{WcellMB.displaySelectedInd}"
    													id="btnInd" style=" text-align: center;"/>
    													 </p:panel>
     
                          </p:layoutUnit>
                       </p:layout>
                    </p:layoutUnit>
     
    			</p:tab>
    			</p:tabView>
    		</p:dialog>
    								<!-- </h:form> -->
     
     
    							</h:panelGrid>
    						</p:tab>
    					</p:accordionPanel>
     
    					<p:growl id="growl" showDetail="true" />
    					<p:fieldset legend="Available Cells" toggleable="true"
    						toggleSpeed="500">
    						<p:ajax event="toggle" listener="#{WcellMB.handleToggle}"
    							update="growl" />
     
    						<p:dataTable var="car" value="#{WcellMB.lazyModel}"
    							rowKey="#{car.provider}" paginator="true" rows="10"
    							paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
    							rowsPerPageTemplate="5,10,15" id="availableCars" lazy="true"
    							paginatorPosition="bottom"
    							rendered="#{empty WcellMB.resultatRecherche}">
     
    							<f:facet name="header">  
                List of Cell
            </f:facet>
    							<p:column style="width:20px">
    								<h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4" />
    								<p:draggable for="dragIcon" revert="true" />
    							</p:column>
    							<p:column headerText="provider" id="model">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="year">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="Cellules" id="manufacturer">  
                #{car.nomCell}  
            </p:column>
     
    							<p:column headerText="CI" id="ci">  
                #{car.ci}  
            </p:column>
    						</p:dataTable>
     
     
    						<p:dataTable id="availableCars2" var="car"
    							value="#{WcellMB.resultatRecherche}" paginator="true" rows="10"
    							rendered="#{not empty WcellMB.resultatRecherche}">
    							<f:facet name="header">  
                List of Cell
            </f:facet>
    							<p:column style="width:20px">
    								<h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4" />
    								<p:draggable for="dragIcon" revert="true" />
    							</p:column>
    							<p:column headerText="constructeur" id="model">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="year">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="Cellules" id="manufacturer">  
                #{car.nomCell}  
            </p:column>
     
    							<p:column headerText="CI" id="ci">  
                #{car.ci}  
            </p:column>
    						</p:dataTable>
     
    					</p:fieldset>
     
    					<p:growl id="growl1" showDetail="true" />
    					<p:fieldset id="selectedCells" legend="Selected Cells"
    						toggleable="true" toggleSpeed="500" style="margin-top:20px">
    						<p:ajax event="toggle" listener="#{WcellMB.handleToggle}"
    							update="growl1" />
    						<p:outputPanel id="dropArea">
    							<h:outputText value="!!!Drop here!!!"
    								rendered="#{empty WcellMB.droppedCells}" style="font-size:24px;" />
     
    							<p:dataTable var="car" value="#{WcellMB.droppedCells}"
    								rendered="#{not empty WcellMB.droppedCells}">
     
    								<p:column style="width:20px">
    									<p:commandButton update=":form"
    										actionListener="#{WcellMB.delete}" icon="ui-icon-close"
    										title="Double Click to Delete">
    										<f:setPropertyActionListener value="#{car}"
    											target="#{WcellMB.selectedTo}" />
    									</p:commandButton>
    								</p:column>
     
    								<p:column headerText="Provider">
    									<h:outputText value="#{car.provider}" />
    								</p:column>
     
    								<p:column headerText="RNC">
    									<h:outputText value="#{car.rnc}" />
    								</p:column>
     
    								<p:column headerText="Cellules">
    									<h:outputText value="#{car.nomCell}" />
    								</p:column>
     
    								<p:column headerText="CI">
    									<h:outputText value="#{car.ci}" />
    								</p:column>
     
    								<p:column style="width:32px">
    									<p:commandButton update=":form:display"
    										oncomplete="carDialog.show()" icon="ui-icon-search">
    										<f:setPropertyActionListener value="#{car}"
    											target="#{WcellMB.selected}" />
    									</p:commandButton>
    								</p:column>
    							</p:dataTable>
    						</p:outputPanel>
    					</p:fieldset>
     
    					<p:droppable for="selectedCells" tolerance="touch"
    						activeStyleClass="ui-state-highlight" datasource="availableCars"
    						onDrop="handleDrop" rendered="#{empty WcellMB.resultatRecherche}">
    						<p:ajax listener="#{WcellMB.onCellDrop}"
    							update="dropArea availableCars" />
    					</p:droppable>
    					<p:droppable for="selectedCells" tolerance="touch"
    						activeStyleClass="ui-state-highlight" datasource="availableCars2"
    						onDrop="handleDrop"
    						rendered="#{not empty WcellMB.resultatRecherche}">
    						<p:ajax listener="#{WcellMB.onDrop}"
    							update="dropArea availableCars" />
    					</p:droppable>
    					<!-- </p:tab>
    			</p:accordionPanel> -->
    					<p:dialog header="Detail" widgetVar="carDialog" resizable="false"
    						draggable="false" width="300" showEffect="fade" hideEffect="fade"
    						modal="true" appendToBody="true">
     
    						<h:panelGrid id="display" columns="2" cellpadding="4">
     
     
    							<h:outputText value="constructeur:"
    								style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.provider}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="BSC:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.rnc}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="Cellules:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.nomCell}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="CI:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.ci}"
    								style="color:rgb(255,255,255)" />
    						</h:panelGrid>
    					</p:dialog>
     
    				</h:form>
    				<script type="text/javascript">
    					function handleDrop(event, ui) {
    						ui.draggable.fadeOut('fast'); //fade out the dropped item
    					}
    				</script>
     
    			</p:layoutUnit>
     
    		</p:layout>
     
    	</h:body>
     
    </f:view>
     
    </html>
    quant au code source de la page
    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
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
     
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    			<title>HOME</title><link type="text/css" rel="stylesheet" href="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/theme.css.jsf?ln=primefaces-vader" /><link type="text/css" rel="stylesheet" href="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/primefaces.css.jsf?ln=primefaces" /><link type="text/css" rel="stylesheet" href="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/layout/layout.css.jsf?ln=primefaces" /><script type="text/javascript" src="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces"></script><script type="text/javascript" src="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/primefaces.js.jsf?ln=primefaces"></script><script type="text/javascript" src="/OTV_JSF_Spring_Hibernate_Project/javax.faces.resource/layout/layout.js.jsf?ln=primefaces"></script>
    		<style type="text/css">
    body {
    	background: #990000;
    }
     
    .ui-widget {
    	font-size: 75%;
    }
     
    .ui-dock-bottom {
    	width: 75%;
    	top: 20px;
    	position: fixed;
    	padding-top: 200px;
    	left: auto;
    	right: auto;
    }
     
    .ui-dock-container-bottom {
    	position: fixed;
    	height: 0px;
    	padding-left: 20px;
    }
     
    a.ui-dock-item-bottom {
    	display: block;
    	width: 40px;
    	bottom: 30px;
    	position: absolute;
    	text-align: center;
    	text-decoration: none;
    }
     
    .ui-dock-item-bottom span {
    	display: none;
    	padding-left: 20px;
    }
     
    .ui-dock-item-bottom img {
    	border: none;
    	margin: 20px 10px 10px;
    	width: 100%;
    }
    </style>
    		<link type="text/css" rel="stylesheet" href="/OTV_JSF_Spring_Hibernate_Project/css/default.css" />
    		<link type="text/css" rel="stylesheet" href="/OTV_JSF_Spring_Hibernate_Project/css/syntaxhighlighter/syntaxhighlighter.css" /></head><body><script id="j_idt7_s" type="text/javascript">$(function() {PrimeFaces.cw('Layout','widget_j_idt7',{id:'j_idt7',full:true,north:{paneSelector:'#j_idt9',size:'100',resizable:false,closable:false},south:{paneSelector:'#j_idt13',size:'3%',resizable:false,closable:false},west:{paneSelector:'#j_idt16',size:'200',resizable:false,closable:false},center:{paneSelector:'#j_idt17',size:'auto',resizable:false,closable:false}},'layout');});</script>
     
    			<!--  Banni&Atilde;&uml;re 12% --><div id="j_idt9" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-north" style="margin:25px 50px 75px 100px;"><div class="ui-layout-unit-content ui-widget-content">
    				<!-- &lt;h:outputText value=&quot;Top unit content.&quot; /&gt; --><img id="j_idt11" src="/OTV_JSF_Spring_Hibernate_Project/images/header_red_global.jpg" alt="" width="100%" height="100%" /></div></div>
     
    			<!--  Bottom 3%--><div id="j_idt13" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-south" style=" margin:25px 50px 75px 100px; text-align: center;"><div class="ui-layout-unit-content ui-widget-content">Copyright © : NS@Tunisana 2012</div></div>
     
    			<!--  Menu 15%--><div id="j_idt16" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-west" style="margin:25px 50px 75px 100px;"><div class="ui-layout-unit-content ui-widget-content"></div></div><div id="j_idt17" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-center" style="margin:25px 50px 75px 100px;"><div class="ui-layout-unit-content ui-widget-content">
    <form id="form" name="form" method="post" action="/OTV_JSF_Spring_Hibernate_Project/pages/MainHome.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="form" value="form" />
    <div id="form:texto" class="ui-messages ui-widget"></div><div id="form:j_idt18" class="ui-accordion ui-widget ui-helper-reset ui-hidden-container" role="tablist"><h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" role="tab" aria-expanded="false"><span class="ui-icon ui-icon-triangle-1-e"></span><a href="#" tabindex="-1">Search</a></h3><div id="form:j_idt18:j_idt19" class="ui-accordion-content ui-helper-reset ui-widget-content ui-helper-hidden" role="tabpanel" aria-hidden="true"><table cellpadding="3">
    <tbody>
    <tr>
    <td class="column"><span style="color:rgb(255,255,255)">Provider: </span></td>
    <td>
    									<!-- &lt;f:validateRegex pattern=&quot;[A-Z]*&quot;/&gt;  --><input id="form:j_idt18:j_idt22" name="form:j_idt18:j_idt22" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" /><script id="form:j_idt18:j_idt22_s" type="text/javascript">PrimeFaces.cw('InputText','widget_form_j_idt18_j_idt22',{id:'form:j_idt18:j_idt22'});</script></td>
    <td><span style="color:rgb(255,255,255)">Bsc: </span></td>
    <td>
    									<!--  &lt;f:validateRegex pattern=&quot;[[A-Z]*[0-9]*]*&quot;/&gt;  --><input id="form:j_idt18:j_idt25" name="form:j_idt18:j_idt25" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" /><script id="form:j_idt18:j_idt25_s" type="text/javascript">PrimeFaces.cw('InputText','widget_form_j_idt18_j_idt25',{id:'form:j_idt18:j_idt25'});</script></td>
    <td><span style="color:rgb(255,255,255)">Nom de Cellule: </span></td>
    <td>
    									<!-- &lt;f:validateRegex pattern=&quot;[[A-Z]*[0-9]*]*&quot;/&gt;  --><input id="form:j_idt18:j_idt28" name="form:j_idt18:j_idt28" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" /><script id="form:j_idt18:j_idt28_s" type="text/javascript">PrimeFaces.cw('InputText','widget_form_j_idt18_j_idt28',{id:'form:j_idt18:j_idt28'});</script></td>
    <td><span style="color:rgb(255,255,255)">CI: </span></td>
    <td><input id="form:j_idt18:j_idt31" name="form:j_idt18:j_idt31" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" /><script id="form:j_idt18:j_idt31_s" type="text/javascript">PrimeFaces.cw('InputText','widget_form_j_idt18_j_idt31',{id:'form:j_idt18:j_idt31'});</script></td>
    <td><button id="form:j_idt18:j_idt32" name="form:j_idt18:j_idt32" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" onclick="PrimeFaces.ab({source:'form:j_idt18:j_idt32',update:'form'});return false;" type="submit"><span class="ui-button-icon-left ui-icon ui-icon-search"></span><span class="ui-button-text">ui-button</span></button><script id="form:j_idt18:j_idt32_s" type="text/javascript">PrimeFaces.cw('CommandButton','widget_form_j_idt18_j_idt32',{id:'form:j_idt18:j_idt32'});</script></td>
    </tr>
    </tbody>
    </table>
    </div><input type="hidden" id="form:j_idt18_active" name="form:j_idt18_active" value="-1" /></div><script id="form:j_idt18_s" type="text/javascript">PrimeFaces.cw('AccordionPanel','widget_form_j_idt18',{id:'form:j_idt18'});</script><div id="form:j_idt33" class="ui-accordion ui-widget ui-helper-reset ui-hidden-container" role="tablist"><h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" role="tab" aria-expanded="false"><span class="ui-icon ui-icon-triangle-1-e"></span><a href="#" tabindex="-1">Operation</a></h3><div id="form:j_idt33:j_idt34" class="ui-accordion-content ui-helper-reset ui-widget-content ui-helper-hidden" role="tabpanel" aria-hidden="true"><table>
    <tbody>
    <tr>
    <td>
    								<!-- &lt;h:form id=&quot;fd&quot;&gt; --></td>
    </tr>
    <tr>
    <td><button id="form:j_idt33:basic" name="form:j_idt33:basic" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="dlg.show();;" type="button"><span class="ui-button-text">Operation Dialog</span></button><script id="form:j_idt33:basic_s" type="text/javascript">PrimeFaces.cw('CommandButton','widget_form_j_idt33_basic',{id:'form:j_idt33:basic'});</script></td>
    </tr>
    <tr>
    <td><div id="form:j_idt33:basicDialog" class="ui-dialog ui-widget ui-widget-content ui-overlay-hidden ui-corner-all ui-shadow"><div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"><span id="form:j_idt33:basicDialog_title" class="ui-dialog-title">Basic Dialog</span><a href="#" class="ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all"><span class="ui-icon ui-icon-closethick"></span></a><a href="#" class="ui-dialog-titlebar-icon ui-dialog-titlebar-maximize ui-corner-all"><span class="ui-icon ui-icon-extlink"></span></a><a href="#" class="ui-dialog-titlebar-icon ui-dialog-titlebar-minimize ui-corner-all"><span class="ui-icon ui-icon-minus"></span></a></div><div class="ui-dialog-content ui-widget-content"></div></div><script id="form:j_idt33:basicDialog_s" type="text/javascript">$(function() {PrimeFaces.cw('Dialog','dlg',{id:'form:j_idt33:basicDialog',draggable:false,width:1000,height:800,dynamic:true,showEffect:'fade',hideEffect:'fade'});});</script></td>
    </tr>
    <tr>
    <td>
    								<!-- &lt;/h:form&gt; --></td>
    </tr>
    </tbody>
    </table>
    </div><input type="hidden" id="form:j_idt33_active" name="form:j_idt33_active" value="-1" /></div><script id="form:j_idt33_s" type="text/javascript">PrimeFaces.cw('AccordionPanel','widget_form_j_idt33',{id:'form:j_idt33'});</script><span id="form:growl"></span><script id="form:growl_s" type="text/javascript">$(function(){PrimeFaces.cw('Growl','widget_form_growl',{id:'form:growl',sticky:false,life:6000,escape:true,msgs:[]});});</script><fieldset id="form:j_idt123" class="ui-fieldset ui-widget ui-widget-content ui-corner-all ui-fieldset-toggleable"><legend class="ui-fieldset-legend ui-corner-all ui-state-default"><span class="ui-fieldset-toggler ui-icon ui-icon-minusthick"></span>Available Cells</legend><div class="ui-fieldset-content"><div id="form:availableCars" class="ui-datatable ui-widget"><table role="grid"><thead><tr><th class="ui-datatable-header ui-widget-header" colspan="5">  
                List of Cell
            </th></tr><tr role="row"><th id="form:availableCars:j_idt125" class="ui-state-default" role="columnheader" style="width:20px"><div class="ui-dt-c"><span></span></div></th><th id="form:availableCars:model" class="ui-state-default" role="columnheader"><div class="ui-dt-c"><span>provider</span></div></th><th id="form:availableCars:year" class="ui-state-default" role="columnheader"><div class="ui-dt-c"><span>RNC</span></div></th><th id="form:availableCars:manufacturer" class="ui-state-default" role="columnheader"><div class="ui-dt-c"><span>Cellules</span></div></th><th id="form:availableCars:ci" class="ui-state-default" role="columnheader"><div class="ui-dt-c"><span>CI</span></div></th></tr></thead><tfoot><tr><td id="form:availableCars_paginator_bottom" class="ui-paginator ui-paginator-bottom ui-widget-header" colspan="5"><select class="ui-paginator-rpp-options ui-widget ui-state-default ui-corner-left" value="10"><option value="5">5</option><option value="10" selected="selected">10</option><option value="15">15</option></select><span class="ui-paginator-first ui-state-default ui-corner-all ui-state-disabled"><span class="ui-icon ui-icon-seek-first">p</span></span><span class="ui-paginator-prev ui-state-default ui-corner-all ui-state-disabled"><span class="ui-icon ui-icon-seek-prev">p</span></span><span class="ui-paginator-current">(1 of 836)</span><span class="ui-paginator-next ui-state-default ui-corner-all"><span class="ui-icon ui-icon-seek-next">p</span></span><span class="ui-paginator-last ui-state-default ui-corner-all"><span class="ui-icon ui-icon-seek-end">p</span></span></td></tr></tfoot><tbody id="form:availableCars_data" class="ui-datatable-data ui-widget-content"><tr data-ri="0" class="ui-widget-content ui-datatable-even" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:0:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:0:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_0_j_idt126',{id:'form:availableCars:0:j_idt126',target:'form:availableCars:0:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4106F23  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15238  
            </div></td></tr><tr data-ri="1" class="ui-widget-content ui-datatable-odd" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:1:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:1:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_1_j_idt126',{id:'form:availableCars:1:j_idt126',target:'form:availableCars:1:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4107F21  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15246  
            </div></td></tr><tr data-ri="2" class="ui-widget-content ui-datatable-even" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:2:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:2:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_2_j_idt126',{id:'form:availableCars:2:j_idt126',target:'form:availableCars:2:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4107F22  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15247  
            </div></td></tr><tr data-ri="3" class="ui-widget-content ui-datatable-odd" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:3:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:3:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_3_j_idt126',{id:'form:availableCars:3:j_idt126',target:'form:availableCars:3:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4107F23  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15248  
            </div></td></tr><tr data-ri="4" class="ui-widget-content ui-datatable-even" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:4:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:4:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_4_j_idt126',{id:'form:availableCars:4:j_idt126',target:'form:availableCars:4:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4111F21  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15506  
            </div></td></tr><tr data-ri="5" class="ui-widget-content ui-datatable-odd" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:5:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:5:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_5_j_idt126',{id:'form:availableCars:5:j_idt126',target:'form:availableCars:5:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4111F22  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15507  
            </div></td></tr><tr data-ri="6" class="ui-widget-content ui-datatable-even" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:6:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:6:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_6_j_idt126',{id:'form:availableCars:6:j_idt126',target:'form:availableCars:6:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4111F23  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15508  
            </div></td></tr><tr data-ri="7" class="ui-widget-content ui-datatable-odd" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:7:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:7:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_7_j_idt126',{id:'form:availableCars:7:j_idt126',target:'form:availableCars:7:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4112F21  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15976  
            </div></td></tr><tr data-ri="8" class="ui-widget-content ui-datatable-even" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:8:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:8:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_8_j_idt126',{id:'form:availableCars:8:j_idt126',target:'form:availableCars:8:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4112F22  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                15977  
            </div></td></tr><tr data-ri="9" class="ui-widget-content ui-datatable-odd" role="row"><td role="gridcell" style="width:20px"><div class="ui-dt-c"><span id="form:availableCars:9:dragIcon" class="ui-icon ui-icon-arrow-4"></span><script id="form:availableCars:9:j_idt126_s" type="text/javascript">$(function() {PrimeFaces.cw('Draggable','widget_form_availableCars_9_j_idt126',{id:'form:availableCars:9:j_idt126',target:'form:availableCars:9:dragIcon',cursor:'crosshair',revert:'invalid'});});</script></div></td><td role="gridcell"><div class="ui-dt-c">  
                Huawei  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                RNCSOS51  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                NAB4063F22  
            </div></td><td role="gridcell"><div class="ui-dt-c">  
                16197  
            </div></td></tr></tbody></table></div><script id="form:availableCars_s" type="text/javascript">PrimeFaces.cw('DataTable','widget_form_availableCars',{id:'form:availableCars',paginator:{id:['form:availableCars_paginator_bottom'],rows:10,rowCount:8354,page:0,currentPageTemplate:'({currentPage} of {totalPages})'}});</script></div><input type="hidden" id="form:j_idt123_collapsed" name="form:j_idt123_collapsed" value="false" /></fieldset><script id="form:j_idt123_s" type="text/javascript">PrimeFaces.cw('Fieldset','widget_form_j_idt123',{id:'form:j_idt123',toggleable:true,collapsed:false,toggleSpeed:500,behaviors:{toggle:function(event) {PrimeFaces.ab({source:'form:j_idt123',event:'toggle',process:'form:j_idt123',update:'form:growl'}, arguments[1]);}}});</script><span id="form:growl1"></span><script id="form:growl1_s" type="text/javascript">$(function(){PrimeFaces.cw('Growl','widget_form_growl1',{id:'form:growl1',sticky:false,life:6000,escape:true,msgs:[]});});</script><fieldset id="form:selectedCells" class="ui-fieldset ui-widget ui-widget-content ui-corner-all ui-fieldset-toggleable" style="margin-top:20px"><legend class="ui-fieldset-legend ui-corner-all ui-state-default"><span class="ui-fieldset-toggler ui-icon ui-icon-minusthick"></span>Selected Cells</legend><div class="ui-fieldset-content"><span id="form:dropArea"><span style="font-size:24px;">!!!Drop here!!!</span></span></div><input type="hidden" id="form:selectedCells_collapsed" name="form:selectedCells_collapsed" value="false" /></fieldset><script id="form:selectedCells_s" type="text/javascript">PrimeFaces.cw('Fieldset','widget_form_selectedCells',{id:'form:selectedCells',toggleable:true,collapsed:false,toggleSpeed:500,behaviors:{toggle:function(event) {PrimeFaces.ab({source:'form:selectedCells',event:'toggle',process:'form:selectedCells',update:'form:growl1'}, arguments[1]);}}});</script><script id="form:j_idt152_s" type="text/javascript">$(function() {PrimeFaces.cw('Droppable','widget_form_j_idt152',{id:'form:j_idt152',target:'form:selectedCells',activeClass:'ui-state-highlight',onDrop:handleDrop,tolerance:'touch',behaviors:{drop:function(event) {PrimeFaces.ab({source:'form:j_idt152',event:'drop',process:'form:j_idt152',update:'form:dropArea form:availableCars'}, arguments[1]);}}});});</script>
    					<!-- &lt;/p:tab&gt;
    			&lt;/p:accordionPanel&gt; --><div id="form:j_idt155" class="ui-dialog ui-widget ui-widget-content ui-overlay-hidden ui-corner-all ui-shadow"><div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top"><span id="form:j_idt155_title" class="ui-dialog-title">Detail</span><a href="#" class="ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all"><span class="ui-icon ui-icon-closethick"></span></a></div><div class="ui-dialog-content ui-widget-content"><table id="form:display" cellpadding="4">
    <tbody>
    <tr>
    <td><span style="color:rgb(255,255,255)">constructeur:</span></td>
    <td><span style="color:rgb(255,255,255)"></span></td>
    </tr>
    <tr>
    <td><span style="color:rgb(255,255,255)">BSC:</span></td>
    <td><span style="color:rgb(255,255,255)"></span></td>
    </tr>
    <tr>
    <td><span style="color:rgb(255,255,255)">Cellules:</span></td>
    <td><span style="color:rgb(255,255,255)"></span></td>
    </tr>
    <tr>
    <td><span style="color:rgb(255,255,255)">CI:</span></td>
    <td><span style="color:rgb(255,255,255)">0</span></td>
    </tr>
    </tbody>
    </table>
    </div></div><script id="form:j_idt155_s" type="text/javascript">$(function() {PrimeFaces.cw('Dialog','carDialog',{id:'form:j_idt155',draggable:false,resizable:false,modal:true,width:300,appendToBody:true,showEffect:'fade',hideEffect:'fade'});});</script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="H4sIAAAAAAAAAL1ZXWzbVBS+TZs1W/nZOvanEdFmrAyUunb+vVFRRlsa0W5AWUHbA9wmt4mLY7v2TZNqMMEDDIEQIA3xCBI8bu88gnhHYo/wMnhBPCAhXhAvg3ttJ3FT27Fjp5aSuPXxd88953znnnPv7T9BVNFUcGQTbkOmjgWRWYJadQUq0dGfv//h+Bs/DYPIIjgkyrC8CEtYVovgIK6qSKvKYrmpPDMH6MU2YuSb3scxeGxDVmvnN18XyjidNn/z59exNC9oigh36io4em1ZH1CEUoW5vL6JSvjCpz++9uVh7UkxAkBTIUjR+ha4AYbJ3VD7LkJUnS7JNUarS8wGLCFN/xYR1hgkMq/AygrCVbm80FSIipogS8C4hh4gqCo4RUdtUtFuua3lE2NXP/n1r4gud7Qt15H4+r0PV/++evdpXT+iR0JWKwxUYKmK7ACLNUUs/gt/Ebm3JungdAqxxhRInLn+KtFYXLnIlA17rBL9SxiVV+oiFhQRvQ1At4lWsSpIlQt37q79/kf8+vMtEw1hEDc0NWyBtpGEmWdLmIy/QO8VpdlYBS/NKLCCtJkVKEhLcg0xzSquiRNz6VwhmWMnoC6/LGgYSUid9aBgoqnR6Yw1Mp6m81BnImuyUNa9+SD1ClFPIRcGxzshw6V58ybDtf3eiYWIJRbo3aipyTFwxKIJjQjdjq2hhujNw9QcF8GcgzkyfD6ZSbmZw4Btz/6M3Zi9Jktm+4hltgXjN5Vqz2vEWajgRSjbLXTWlo9YritliJHxjxxrY+sO72Ik3pOuvFuDYh050e5km05dYo1D71y79939zyImQQ6ScSZ386rrDUqr2MeJ+zc/uPNti1ZTjdNgVEK4IatvgsPdiYU6nQWMg9NTLJvMZyYwVCsIzyZMFNPFZ/Xvc40TYLikbdtDPwXO9YDeUdBsgry/F1SVavagDEi6g24IIroEawSYYCSMwHIMiXTK1bm7iXQKHOsEtYqIF1T6sSfTIph30JPjUskM70ImC3SbUE84jd07g9hNm+uLCXwPJlh9GCDuUqlkgR9M3JnQ4cadAdoVd7uAT4IRrNaRPfIMmHZHpg8vS+LObIKCdELam9cKeR9eexTETHtz9spyYMZJ2UImmc92u43ba+KmqPn2m4mt+428H47fDFDnfOGJE36sG4ATXN4TJ5Tyhm/bmtC6bcn74djWAB0EJwzkYJzIZffJa94yWT+M4CyZLDRGcAPLZFwImSznvliH5jU266nuadZE/3VPtlP3kPdDqnuy7nWPp1XCz9oeaJXgbYxrs0r0k8lM7HAzmQEazLrZwr5ELseTSEgPZJVoQYdqWxM0oG1z+2Rbb91QH7m8BR1qLjdBnW07rtuWYAoiXBfRc1DVbLYSolS4/dfwDRWwtAlVVKGGjG6X9L6KLNHdFagIzJXiPMTw8RdVWUEq3nkB7WhmwwvG9YbX0q8sSPWa9SFRKqbKjaJURs32xpsuWZQwqiB1/Levvvnn3ZuFCBgqgug2bX8JosUwl+q1daS+f/vz+Nitex/pe0H/kYtOd8pDKHFsr14/pCyY5nJJnvWQBfvocVrYofY4JugAKgMTOVhlkLfbDxtEZ5q3cVs4lYEJHW5lYIAOpDPNu3vNG938FHRB6JbikjznpTX177gWdqiOM0EHQTcDORjd+H2iG58Z2AakCR3uRpAB6rzknnY6/iFLno99yEkQdzxaIEj2+5GXwLJTSPCFZDbn/ayDDtHel5zppUvv/UlPEZfep/aE5z1uYvWR4k3scFO8ARqshOb9lNBB8jDrsezpo4huYYdaRJugg8jDbAhlD++nrQxUrnLe/NZHY9nCDrWxNEEHUq5y7n6L2/rNrHc6mywjHqT3nGlG6YPO2uvWpU1bD787LdqV4pqAGi/LMnZs0SjKLQwOiFDDxbJurS/IowNUgYTTArZElg1ZFbbqqN/ztGobwe95WjrDJ3Npl/XLAm1/nmYdu9d61fwf4g/KRxgiAAA=" autocomplete="off" />
    </form>
    				<script type="text/javascript">
    					function handleDrop(event, ui) {
    						ui.draggable.fadeOut('fast'); //fade out the dropped item
    					}
    				</script></div></div></body>
     
    </html>


    Merci pour votre aide

  6. #6
    Membre à l'essai
    Femme Profil pro
    Inscrit en
    Novembre 2012
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme

    Informations forums :
    Inscription : Novembre 2012
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    bonjour

    En fait, j'ai supprimé un <h:form> et du coup y a un telechargement de fichier(excel, pdf...) Sauf que, les données sont du genre #{car.provider}

    le nouveau code de la page est

    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
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:p="http://primefaces.org/ui">
     
    <f:view contentType="text/html">
    	<h:head>
    		<f:facet name="first">
    			<title>HOME</title>
    		</f:facet>
    		<style type="text/css">
    body {
    	background: #990000;
    }
     
    .ui-widget {
    	font-size: 75%;
    }
     
    .ui-dock-bottom {
    	width: 75%;
    	top: 20px;
    	position: fixed;
    	padding-top: 200px;
    	left: auto;
    	right: auto;
    }
     
    .ui-dock-container-bottom {
    	position: fixed;
    	height: 0px;
    	padding-left: 20px;
    }
     
    a.ui-dock-item-bottom {
    	display: block;
    	width: 40px;
    	bottom: 30px;
    	position: absolute;
    	text-align: center;
    	text-decoration: none;
    }
     
    .ui-dock-item-bottom span {
    	display: none;
    	padding-left: 20px;
    }
     
    .ui-dock-item-bottom img {
    	border: none;
    	margin: 20px 10px 10px;
    	width: 100%;
    }
    </style>
    		<link type="text/css" rel="stylesheet"
    			href="#{request.contextPath}/css/default.css" />
    		<link type="text/css" rel="stylesheet"
    			href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
    	</h:head>
     
    	<h:body>
     
    		<p:layout fullPage="true">
     
    			<!--  Bannière 12% -->
    			<p:layoutUnit position="north" size="100"
    				style="margin:25px 50px 75px 100px;">
    				<!-- <h:outputText value="Top unit content." /> -->
    				<p:graphicImage value="/images/header_red_global.jpg" width="100%"
    					height="100%"></p:graphicImage>
    			</p:layoutUnit>
     
    			<!--  Bottom 3%-->
    			<p:layoutUnit position="south" size="3%"
    				style=" margin:25px 50px 75px 100px; text-align: center;">
    				<h:outputText value="Copyright © : NS@Tunisana 2012" />
    			</p:layoutUnit>
     
    			<!--  Menu 15%-->
    			<p:layoutUnit position="west" size="200"
    				style="margin:25px 50px 75px 100px;">
     
    			</p:layoutUnit>
     
    			<p:layoutUnit position="center" style="margin:25px 50px 75px 100px;">
    				<h:form id="form">
    					<p:messages id="texto" showDetail="true" autoUpdate="true"
    						closable="true" />
    					<p:accordionPanel activeIndex="-1">
    						<p:tab title="Search">
    							<h:panelGrid columns="9" columnClasses="column" cellpadding="3">
    								<h:outputText value="Provider: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch1}">
    									<!-- <f:validateRegex pattern="[A-Z]*"/>  -->
    								</p:inputText>
    								<h:outputText value="Bsc: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch2}">
    									<!--  <f:validateRegex pattern="[[A-Z]*[0-9]*]*"/>  -->
    								</p:inputText>
    								<h:outputText value="Nom de Cellule: "
    									style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch3}">
    									<!-- <f:validateRegex pattern="[[A-Z]*[0-9]*]*"/>  -->
    								</p:inputText>
    								<h:outputText value="CI: " style="color:rgb(255,255,255)" />
    								<p:inputText value="#{WcellMB.ch4}">
    									<f:validateRegex pattern="[0-9]*" />
    								</p:inputText>
    								<p:commandButton actionListener="#{WcellMB.rechercher}"
    									icon="ui-icon-search" update=":form" />
    							</h:panelGrid>
    						</p:tab>
    					</p:accordionPanel>
    					<p:accordionPanel activeIndex="-1">
    						<p:tab title="Operation">
    							<h:panelGrid>
    								<!-- <h:form id="fd"> -->
    									<p:commandButton id="basic" value="Operation Dialog"
    										onclick="dlg.show();" type="button" />
    													<p:dialog id="basicDialog" header="Basic Dialog" widgetVar="dlg"
    			width="1000" height="800" dynamic="true" maximizable="true"
    			minimizable="true" draggable="false" showEffect="fade" 
    			hideEffect="fade">
    			<p:tabView>
    			<p:tab title="Design" style=" text-align: center;">
    			<p:layout id="layout" style="width:900px;height:700px">
    				<p:layoutUnit id="center" position="center">
    					<p:layout>
    						<p:layoutUnit id="inner_south" position="south" size="50%">
    						<!--  <p:outputPanel id="Area"> -->
     
    							 <h:outputText value="!!!RESULTAT!!!"
    								rendered="#{empty WcellMB.treeSelection and empty WcellMB.historique}" style="font-size:24px;" /> 
     
     
    						<p:dataTable id="network" var="car" paginator="true" rows="5"
    							value="#{WcellMB.treeSelection}" 
    							rendered="#{not empty WcellMB.treeSelection}">
    							<f:facet name="head">  
                Last Update
            </f:facet>
    							<p:column headerText="Provider" id="p" rendered="#{WcellMB.testProvider}">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="r" rendered="#{WcellMB.testRnc}">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="WBTS" id="wb" rendered="#{WcellMB.testWbts}" >  
                #{car.wbts}  
            </p:column>
     
    							<p:column headerText="CI" id="c" rendered="#{WcellMB.testCi}">  
                #{car.ci}  
            </p:column>
     
            <p:column headerText="CGI" id="cgi" rendered="#{WcellMB.testCgi}">  
                #{car.cgi}  
            </p:column>
            <p:column headerText="Cellules" id="nc" rendered="#{WcellMB.testNomCell}">  
                #{car.nomCell}  
            </p:column>
     
            <p:column headerText="Label" id="Lab" rendered="#{WcellMB.testLabel}">  
                #{car.label}  
            </p:column>
     
            <p:column headerText="Frequency-Band" id="freq" rendered="#{WcellMB.testFreq}">  
                #{car.frequency_band}  
            </p:column>
     
            <p:column headerText="RAC" id="rac" rendered="#{WcellMB.testRac}">  
                #{car.rac}  
            </p:column>
            <p:column headerText="LAC" id="lac" rendered="#{WcellMB.testLac}">  
                #{car.lac}  
            </p:column>
            <p:column headerText="Network-Id" id="Nid" rendered="#{WcellMB.testNet}">  
                #{car.networkid}  
            </p:column> 
            <f:facet name="footer">
    			<h:panelGrid columns="2" style=" text-align: center;" rendered="#{not empty WcellMB.treeSelection }">  
        <p:panel header="Export All Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm"/>  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" />  
            </h:commandLink>  
        </p:panel>  
     
        <p:panel header="Export Page Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network" fileName="rnm" pageOnly="true" />  
            </h:commandLink>  
        </p:panel>  
    </h:panelGrid>  			
    				</f:facet>
    						</p:dataTable>		
    		<p:dataTable id="network1" var="car" paginator="true" rows="5"
    							value="#{WcellMB.historique}" 
    							rendered="#{not empty WcellMB.historique}">
    							<f:facet name="head">  
                                  Historique
                                </f:facet>
    							<p:column headerText="Provider" id="pr" rendered="#{WcellMB.testProvider}">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="rn" rendered="#{WcellMB.testRnc}">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="WBTS" id="wbt" rendered="#{WcellMB.testWbts}" >  
                #{car.wbts}  
            </p:column>
     
    							<p:column headerText="CI" id="ccc" rendered="#{WcellMB.testCi}">  
                #{car.ci}  
            </p:column>
     
            <p:column headerText="CGI" id="cgiii" rendered="#{WcellMB.testCgi}">  
                #{car.cgi}  
            </p:column>
            <p:column headerText="Cellules" id="ncl" rendered="#{WcellMB.testNomCell}">  
                #{car.nomCell}  
            </p:column>
     
            <p:column headerText="Label" id="Labe" rendered="#{WcellMB.testLabel}">  
                #{car.label}  
            </p:column>
     
            <p:column headerText="Frequency-Band" id="freqb" rendered="#{WcellMB.testFreq}">  
                #{car.frequency_band}  
            </p:column>
     
            <p:column headerText="RAC" id="raccc" rendered="#{WcellMB.testRac}">  
                #{car.rac}  
            </p:column>
            <p:column headerText="LAC" id="laccc" rendered="#{WcellMB.testLac}">  
                #{car.lac}  
            </p:column>
            <p:column headerText="Network-Id" id="Netid" rendered="#{WcellMB.testNet}">  
                #{car.networkid}  
            </p:column> 
            <f:facet name="footer">  
                 <h:panelGrid columns="2" style=" text-align: center;" rendered="#{not empty WcellMB.historique}">  
        <p:panel header="Export All Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network1" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network1" fileName="rnm"/>  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network" fileName="rnm" />  
            </h:commandLink>  
     
            <h:commandLink>  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network1" fileName="rnm" />  
            </h:commandLink>  
        </p:panel>  
     
        <p:panel header="Export Page Data" style=" text-align: center;">  
            <h:commandLink >  
                <p:graphicImage value="/images/excel.png" />  
                <p:dataExporter type="xls" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/pdf.png" />  
                <p:dataExporter type="pdf" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/csv.png" />  
                <p:dataExporter type="csv" target="network1" fileName="rnm" pageOnly="true"/>  
            </h:commandLink>  
     
            <h:commandLink >  
                <p:graphicImage value="/images/xml.png" />  
                <p:dataExporter type="xml" target="network1" fileName="rnm" pageOnly="true" />  
            </h:commandLink>  
        </p:panel>  
    </h:panelGrid>  
            </f:facet>  
     
     
     
    						</p:dataTable>
     
     
     
    						</p:layoutUnit>
    						<p:layoutUnit id="inner_west" position="east" size="35%">
    						<p:growl id="sages" showDetail="true" escape="false" />
    						<!-- <p:accordionPanel activeIndex="-1">
    								<p:tab title="date"> -->
    								<p:panel header="Historique" width="300"> 
     
    									<h:panelGrid columns="1" columnClasses="column" cellpadding="8"
    										width="270" style=" text-align: center;">
    										 <h:outputText value="Date :" />
    										 <p:inplace id="date1" label="jj/mm/aaaa">  
                    						<p:inputText  value="#{WcellMB.date1}" >
                    						 <f:validateRegex pattern="[0-3][0-9]/[0-3][0-9]/[0-9]*"/>    
                							</p:inputText>
                							</p:inplace>  
                							 <p:inplace id="date2" label="jj/mm/aaaa">  
                                             <p:inputText  value="#{WcellMB.date2}" >
                                              <f:validateRegex pattern="[0-3][0-9]/[0-3][0-9]/[0-9]*"/>    
                							</p:inputText>  
                                             </p:inplace>  
    										<p:commandButton icon="ui-icon-search" title="Please verify date!" update="sages,layout" 
    													actionListener="#{WcellMB.historique}"
    													id="btnHistorique" style=" text-align: center;"/>
    									 </h:panelGrid> </p:panel>
    								<!--</p:tab> 
    							</p:accordionPanel>-->
    						</p:layoutUnit>
     
    						<p:layoutUnit id="inner_center" position="center">	
    						<p:panel header="Last Update">
    							<p:growl id="messages" showDetail="true" escape="false" />
    							 <p:tree value="#{WcellMB.root}" var="node" 
    													selectionMode="multiple" selection="#{WcellMB.selectedNodes}" 
    													id="treeMultiple">
     
    													<p:treeNode>
    														<h:outputText value="#{node}"  />
    													</p:treeNode>
    												</p:tree>
    												<p:commandButton icon="ui-icon-search" update="messages,layout" 
    													actionListener="#{WcellMB.displaySelectedMultiple}"
    													id="btnDisplay" style=" text-align: center;"/>
     
    													 </p:panel>
     
    						</p:layoutUnit>
    					</p:layout>
    				</p:layoutUnit>
     
    			</p:layout>
    			</p:tab>
    			<p:tab title="Indicator" style=" text-align: center;">
    					<p:layoutUnit id="center1" position="center" >
                       <p:layout id="layout1">
                          <p:layoutUnit id="inner_north1" position="north" size="100">inner north</p:layoutUnit>
                          <p:layoutUnit id="inner_south1" position="south" size="100">inner south</p:layoutUnit>
                          <p:layoutUnit id="inner_west1" position="west" size="100">inner west</p:layoutUnit>
                          <p:layoutUnit id="inner_east1" position="east" size="100">inner east</p:layoutUnit>
                          <p:layoutUnit id="inner_center1" position="center" >
                          <p:panel header="Last Update">
    							<p:growl id="mg" showDetail="true" escape="false" />
    							 <p:tree value="#{WcellMB.root1}" var="node" 
    													selectionMode="multiple" selection="#{WcellMB.selectedInd}" 
    													id="treeMultiple1">
     
    													<p:treeNode>
    														<h:outputText value="#{node}"  />
    													</p:treeNode>
    												</p:tree>
    												<p:commandButton icon="ui-icon-search" update="mg,layout1" 
    													actionListener="#{WcellMB.displaySelectedInd}"
    													id="btnInd" style=" text-align: center;"/>
    													 </p:panel>
     
                          </p:layoutUnit>
                       </p:layout>
                    </p:layoutUnit>
     
    			</p:tab>
    			</p:tabView>
    		</p:dialog>
    								<!-- </h:form> -->
     
     
    							</h:panelGrid>
    						</p:tab>
    					</p:accordionPanel>
     
    					<p:growl id="growl" showDetail="true" />
    					<p:fieldset legend="Available Cells" toggleable="true"
    						toggleSpeed="500">
    						<p:ajax event="toggle" listener="#{WcellMB.handleToggle}"
    							update="growl" />
     
    						<p:dataTable var="car" value="#{WcellMB.lazyModel}"
    							rowKey="#{car.provider}" paginator="true" rows="10"
    							paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
    							rowsPerPageTemplate="5,10,15" id="availableCars" lazy="true"
    							paginatorPosition="bottom"
    							rendered="#{empty WcellMB.resultatRecherche}">
     
    							<f:facet name="header">  
                List of Cell
            </f:facet>
    							<p:column style="width:20px">
    								<h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4" />
    								<p:draggable for="dragIcon" revert="true" />
    							</p:column>
    							<p:column headerText="provider" id="model">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="year">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="Cellules" id="manufacturer">  
                #{car.nomCell}  
            </p:column>
     
    							<p:column headerText="CI" id="ci">  
                #{car.ci}  
            </p:column>
    						</p:dataTable>
     
     
    						<p:dataTable id="availableCars2" var="car"
    							value="#{WcellMB.resultatRecherche}" paginator="true" rows="10"
    							rendered="#{not empty WcellMB.resultatRecherche}">
    							<f:facet name="header">  
                List of Cell
            </f:facet>
    							<p:column style="width:20px">
    								<h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4" />
    								<p:draggable for="dragIcon" revert="true" />
    							</p:column>
    							<p:column headerText="constructeur" id="model">  
                #{car.provider}  
            </p:column>
     
    							<p:column headerText="RNC" id="year">  
                #{car.rnc}  
            </p:column>
     
    							<p:column headerText="Cellules" id="manufacturer">  
                #{car.nomCell}  
            </p:column>
     
    							<p:column headerText="CI" id="ci">  
                #{car.ci}  
            </p:column>
    						</p:dataTable>
     
    					</p:fieldset>
     
    					<p:growl id="growl1" showDetail="true" />
    					<p:fieldset id="selectedCells" legend="Selected Cells"
    						toggleable="true" toggleSpeed="500" style="margin-top:20px">
    						<p:ajax event="toggle" listener="#{WcellMB.handleToggle}"
    							update="growl1" />
    						<p:outputPanel id="dropArea">
    							<h:outputText value="!!!Drop here!!!"
    								rendered="#{empty WcellMB.droppedCells}" style="font-size:24px;" />
     
    							<p:dataTable var="car" value="#{WcellMB.droppedCells}"
    								rendered="#{not empty WcellMB.droppedCells}">
     
    								<p:column style="width:20px">
    									<p:commandButton update=":form"
    										actionListener="#{WcellMB.delete}" icon="ui-icon-close"
    										title="Double Click to Delete">
    										<f:setPropertyActionListener value="#{car}"
    											target="#{WcellMB.selectedTo}" />
    									</p:commandButton>
    								</p:column>
     
    								<p:column headerText="Provider">
    									<h:outputText value="#{car.provider}" />
    								</p:column>
     
    								<p:column headerText="RNC">
    									<h:outputText value="#{car.rnc}" />
    								</p:column>
     
    								<p:column headerText="Cellules">
    									<h:outputText value="#{car.nomCell}" />
    								</p:column>
     
    								<p:column headerText="CI">
    									<h:outputText value="#{car.ci}" />
    								</p:column>
     
    								<p:column style="width:32px">
    									<p:commandButton update=":form:display"
    										oncomplete="carDialog.show()" icon="ui-icon-search">
    										<f:setPropertyActionListener value="#{car}"
    											target="#{WcellMB.selected}" />
    									</p:commandButton>
    								</p:column>
    							</p:dataTable>
    						</p:outputPanel>
    					</p:fieldset>
     
    					<p:droppable for="selectedCells" tolerance="touch"
    						activeStyleClass="ui-state-highlight" datasource="availableCars"
    						onDrop="handleDrop" rendered="#{empty WcellMB.resultatRecherche}">
    						<p:ajax listener="#{WcellMB.onCellDrop}"
    							update="dropArea availableCars" />
    					</p:droppable>
    					<p:droppable for="selectedCells" tolerance="touch"
    						activeStyleClass="ui-state-highlight" datasource="availableCars2"
    						onDrop="handleDrop"
    						rendered="#{not empty WcellMB.resultatRecherche}">
    						<p:ajax listener="#{WcellMB.onDrop}"
    							update="dropArea availableCars" />
    					</p:droppable>
    					<!-- </p:tab>
    			</p:accordionPanel> -->
    					<p:dialog header="Detail" widgetVar="carDialog" resizable="false"
    						draggable="false" width="300" showEffect="fade" hideEffect="fade"
    						modal="true" appendToBody="true">
     
    						<h:panelGrid id="display" columns="2" cellpadding="4">
     
     
    							<h:outputText value="constructeur:"
    								style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.provider}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="BSC:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.rnc}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="Cellules:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.nomCell}"
    								style="color:rgb(255,255,255)" />
     
    							<h:outputText value="CI:" style="color:rgb(255,255,255)" />
    							<h:outputText value="#{WcellMB.selected.ci}"
    								style="color:rgb(255,255,255)" />
    						</h:panelGrid>
    					</p:dialog>
     
    				</h:form>
    				<script type="text/javascript">
    					function handleDrop(event, ui) {
    						ui.draggable.fadeOut('fast'); //fade out the dropped item
    					}
    				</script>
     
    			</p:layoutUnit>
     
    		</p:layout>
     
    	</h:body>
     
    </f:view>
     
    </html>

Discussions similaires

  1. [PrimeFaces] Problème avec <p:dataExporter>
    Par Cyang dans le forum JSF
    Réponses: 2
    Dernier message: 04/09/2012, 00h21
  2. Réponses: 2
    Dernier message: 13/08/2012, 15h57
  3. Réponses: 1
    Dernier message: 10/08/2012, 00h31
  4. [PrimeFaces] Problème d'accent
    Par rolandl dans le forum JSF
    Réponses: 1
    Dernier message: 08/08/2012, 10h26
  5. [PrimeFaces] Problème separator
    Par ahmedpa dans le forum JSF
    Réponses: 5
    Dernier message: 16/07/2012, 12h11

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