Subversion Repositories eFlore/Applications.coel

Rev

Rev 1218 | Rev 1308 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1218 Rev 1249
Line 93... Line 93...
93
		projetsCombo.setEmptyText(i18nC.txtListeProjetDefaut());
93
		projetsCombo.setEmptyText(i18nC.txtListeProjetDefaut());
94
		projetsCombo.setEditable(false);
94
		projetsCombo.setEditable(false);
95
		projetsCombo.setForceSelection(true);
95
		projetsCombo.setForceSelection(true);
96
		projetsCombo.setAllowBlank(false);
96
		projetsCombo.setAllowBlank(false);
97
		projetsCombo.setValidator(new Validator() {
97
		projetsCombo.setValidator(new Validator() {
98
			@Override
-
 
99
			public String validate(Field<?> champ, String valeurAValider) {
98
			public String validate(Field<?> champ, String valeurAValider) {
100
				String retour = null;
99
				String retour = null;
101
				if (UtilString.isEmpty(valeurAValider) 
100
				if (UtilString.isEmpty(valeurAValider) 
102
						|| projetsCombo.getStore().findModel("nom", valeurAValider) == null) {
101
						|| projetsCombo.getStore().findModel("nom", valeurAValider) == null) {
103
					champ.setValue(null);
102
					champ.setValue(null);