public void onSelect$poste_travail() throws SQLException {
    message.setValue("");

    String poste = (String) map_poste.get((String) poste_travail.getSelectedItem().getLabel());

    CategoryModel catmodel = new SimpleCategoryModel();
    List charts = new ArrayList<CategoryModel>();
    StatMoyFamillePosteBean cpb;
    Iterator it;
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    List sect_items = cotationMoel.getListPosteMoyFam(poste);
    it = sect_items.iterator();
    if (sect_items.size() > 0) {
      mychart.setVisible(true);
      while (it.hasNext()) {
        cpb = (StatMoyFamillePosteBean) it.next();

        catmodel.setValue(cpb.getFamille(), "Familles de compétence", cpb.getMoy_famille());
        // catmodel.setValue("IMI","indice de maitrise individuel",3);
        mychart.setModel(catmodel);
      }

      catmodel.setValue("IMG", "Indice de maitrise global", cotationMoel.getIMGParPoste(poste));
      mychart.setModel(catmodel);

      ChartEngine d = mychart.getEngine();
      image = d.drawChart(mychart);
    } else {
      message.setVisible(true);
      message.setValue("Pas de résultat à afficher");
      mychart.setVisible(false);
    }
  }
  public void onSelect$compagne() throws SQLException {

    poste_travail.getItems().clear();
    poste_travail.setVisible(true);
    String compagne_id = (String) map_compagne.get((String) compagne.getSelectedItem().getLabel());
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    map_poste = cotationMoel.getListPostTravailValid(compagne_id);
    Set set = (map_poste).entrySet();
    Iterator i = set.iterator();

    while (i.hasNext()) {
      Map.Entry me = (Map.Entry) i.next();
      poste_travail.appendItem((String) me.getKey());
    }

    poste_travail.setSelectedIndex(0);
  }
  public void doAfterCompose(Component comp) throws Exception {

    super.doAfterCompose(comp);
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    // ListeCotationEmploye=cotationMoel.InitialiserStatCotationEmploye();

    map_compagne = cotationMoel.getListCompagneValid();

    Set set = (map_compagne).entrySet();
    Iterator i = set.iterator();
    // Display elements
    while (i.hasNext()) {
      Map.Entry me = (Map.Entry) i.next();
      compagne.appendItem((String) me.getKey());
    }
    // forcer la selection de la permiere ligne
    poste_travail.setVisible(false);
    if (compagne.getItemCount() > 0) compagne.setSelectedIndex(0);
  }