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

GWT et Vaadin Java Discussion :

gwt ext : une suite de ComboBox


Sujet :

GWT et Vaadin Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Décembre 2006
    Messages : 213
    Par défaut gwt ext : une suite de ComboBox
    Bonjour,

    voila mon code, tout du moins une partie :

    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
    storeId = new SimpleStore(new String[]{"idCandidat","nom","prenom"}, candidats);  
    storeId.load();
     
    storeEtatDossier = new SimpleStore(new String[]{"libelle"}, etatDossier);  
    storeEtatDossier.load();
     
    storeExperience = new SimpleStore(new String[]{"libelle"}, experience);  
    storeExperience.load();
     
    storeProfil = new SimpleStore(new String[]{"libelle"}, profil);  
    storeProfil.load();
     
    storeTechnologie = new SimpleStore(new String[]{"libelle"}, technologie);  
    storeTechnologie.load();
     
    storeFormation = new SimpleStore(new String[]{"libelle"}, formation);  
    storeFormation.load();
     
    storeSourcing = new SimpleStore(new String[]{"libelle"}, sourcing);  
    storeSourcing.load();
     
    final ComboBox cbNom = new ComboBox();  
    cbNom.setMinChars(1);  
    cbNom.setFieldLabel("Nom");  
    cbNom.setStore(storeId);  
    cbNom.setDisplayField("nom");  
    cbNom.setMode(ComboBox.LOCAL);  
    cbNom.setEmptyText("Entrer un nom");  
    cbNom.setLoadingText("Searching...");  
    cbNom.setTypeAhead(true);  
    cbNom.setSelectOnFocus(true);  
    cbNom.setWidth(120);  
    cbNom.setHideTrigger(true);  
     
    final ComboBox cbPrenom = new ComboBox();  
    cbPrenom.setMinChars(1);  
    cbPrenom.setFieldLabel("Prénom");  
    cbPrenom.setStore(storeId);  
    cbPrenom.setDisplayField("prenom");  
    cbPrenom.setMode(ComboBox.LOCAL);  
    cbPrenom.setEmptyText("Entrer un prenom");  
    cbPrenom.setLoadingText("Searching...");  
    cbPrenom.setTypeAhead(true);  
    cbPrenom.setSelectOnFocus(true);  
    cbPrenom.setWidth(120);  
    cbPrenom.setHideTrigger(true);  
     
    final ComboBox cbEtatDossier = new ComboBox();  
    cbEtatDossier.setForceSelection(true);  
    cbEtatDossier.setMinChars(1);  
    cbEtatDossier.setFieldLabel("Etat du dossier");  
    cbEtatDossier.setStore(storeEtatDossier);  
    cbEtatDossier.setDisplayField("libelle");  
    cbEtatDossier.setMode(ComboBox.LOCAL);  
    cbEtatDossier.setTriggerAction(ComboBox.ALL);  
    cbEtatDossier.setEmptyText("Entrer un etat");  
    cbEtatDossier.setLoadingText("Searching...");  
    cbEtatDossier.setTypeAhead(true);  
    cbEtatDossier.setSelectOnFocus(true);  
    cbEtatDossier.setWidth(160);  
    cbEtatDossier.setHideTrigger(false); 
     
    final ComboBox cbExperience = new ComboBox();  
    cbExperience.setForceSelection(true);  
    cbExperience.setMinChars(1);  
    cbExperience.setFieldLabel("Experience");  
    cbExperience.setStore(storeExperience);  
    cbExperience.setDisplayField("libelle");  
    cbExperience.setMode(ComboBox.LOCAL);  
    cbExperience.setTriggerAction(ComboBox.ALL);  
    cbExperience.setEmptyText("Entrer une experience");  
    cbExperience.setLoadingText("Searching...");  
    cbExperience.setTypeAhead(true);  
    cbExperience.setSelectOnFocus(true);  
    cbExperience.setWidth(120);  
    cbExperience.setHideTrigger(false); 
     
    final ComboBox cbProfil = new ComboBox();  
    cbProfil.setForceSelection(true);  
    cbProfil.setMinChars(1);  
    cbProfil.setFieldLabel("Profil");  
    cbProfil.setStore(storeProfil);  
    cbProfil.setDisplayField("libelle");  
    cbProfil.setMode(ComboBox.LOCAL);  
    cbProfil.setTriggerAction(ComboBox.ALL);  
    cbProfil.setEmptyText("Entrer un profil");  
    cbProfil.setLoadingText("Searching...");  
    cbProfil.setTypeAhead(true);  
    cbProfil.setSelectOnFocus(true);  
    cbProfil.setWidth(120);  
    cbProfil.setHideTrigger(false); 
     
    final ComboBox cbSourcing = new ComboBox();  
    cbSourcing.setForceSelection(true);  
    cbSourcing.setMinChars(1);  
    cbSourcing.setFieldLabel("Sourcing");  
    cbSourcing.setStore(storeSourcing);  
    cbSourcing.setDisplayField("libelle");  
    cbSourcing.setMode(ComboBox.LOCAL);  
    cbSourcing.setTriggerAction(ComboBox.ALL);  
    cbSourcing.setEmptyText("Entrer une source");  
    cbSourcing.setLoadingText("Searching...");  
    cbSourcing.setTypeAhead(true);  
    cbSourcing.setSelectOnFocus(true);  
    cbSourcing.setWidth(120);  
    cbSourcing.setHideTrigger(false); 
     
    final ComboBox cbTechnologie = new ComboBox();  
    cbTechnologie.setForceSelection(true);  
    cbTechnologie.setMinChars(1);  
    cbTechnologie.setFieldLabel("Technologie");  
    cbTechnologie.setStore(storeTechnologie);  
    cbTechnologie.setDisplayField("libelle");  
    cbTechnologie.setMode(ComboBox.LOCAL);  
    cbTechnologie.setTriggerAction(ComboBox.ALL);  
    cbTechnologie.setEmptyText("Entrer une technologie");  
    cbTechnologie.setLoadingText("Searching...");  
    cbTechnologie.setTypeAhead(true);  
    cbTechnologie.setSelectOnFocus(true);  
    cbTechnologie.setWidth(120);  
    cbTechnologie.setHideTrigger(false); 
     
    final ComboBox cbFormation = new ComboBox();  
    cbEtatDossier.setForceSelection(true);  
    cbEtatDossier.setMinChars(1);  
    cbEtatDossier.setFieldLabel("Formation");  
    cbEtatDossier.setStore(storeFormation);  
    cbEtatDossier.setDisplayField("libelle");  
    cbEtatDossier.setMode(ComboBox.LOCAL);  
    cbEtatDossier.setTriggerAction(ComboBox.ALL);  
    cbEtatDossier.setEmptyText("Entrer une formation");  
    cbEtatDossier.setLoadingText("Searching...");  
    cbEtatDossier.setTypeAhead(true);  
    cbEtatDossier.setSelectOnFocus(true);  
    cbEtatDossier.setWidth(120);  
    cbEtatDossier.setHideTrigger(false);
     
    this.add(cbNom);
    this.add(cbPrenom);
    this.add(cbEtatDossier);
    this.add(cbExperience);
    this.add(cbProfil);
    this.add(cbSourcing);
    this.add(cbTechnologie);
    this.add(cbFormation);
    et voila ce que j'ai en visuel (piece jointe)

    le "cbEtatDossier" n'apparait pas bien!
    si mets this.add(cbEtatDossier); en commentaire c'est un autre qui n'apparait pas bien bref je comprend pas pourquoi j'ai une erreur pareille

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Décembre 2006
    Messages : 213
    Par défaut
    erreur de codage, j'ai copier/coller comme une merde!

  3. #3
    Rédacteur
    Avatar de benwit
    Profil pro
    dev
    Inscrit en
    Septembre 2004
    Messages
    1 676
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : dev

    Informations forums :
    Inscription : Septembre 2004
    Messages : 1 676
    Par défaut
    As tu remarqué que tu as une longueur de 160 pour celui là :

    cbEtatDossier.setWidth(160);

    et de 120 pour les autres ?

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Décembre 2006
    Messages : 213
    Par défaut
    l'erreur ne viens pas de la!

    je suis completement gourér sur un copier coller fait trop vite!

    quand j'instancie cbFormation avec les set qui vont bien et bien je n'ai pas remplacé cbEtatDossier par cbFormation tout simplement bref erreur de debile!

Discussions similaires

  1. Réponses: 6
    Dernier message: 09/10/2009, 08h19
  2. GWT-Ext - GridPanel "Bloquer" une colonne
    Par nezdeboeuf62 dans le forum GWT et Vaadin
    Réponses: 5
    Dernier message: 25/08/2009, 12h06
  3. [GWT, GWT-EXT] Bug alignement ComboBox
    Par k o D dans le forum GWT et Vaadin
    Réponses: 8
    Dernier message: 24/07/2009, 11h26
  4. Fermeture D'une application GWT-ext
    Par pesti dans le forum GWT et Vaadin
    Réponses: 11
    Dernier message: 17/07/2009, 14h59
  5. [Recursivite] function/procedure d'une suite logique
    Par Tata dans le forum Algorithmes et structures de données
    Réponses: 7
    Dernier message: 02/03/2005, 16h13

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