ghatfan99
18 Aug 2010, 12:19 AM
hello,
i have a TextFieldMask for puting the hours:
final
TextFieldMask finAbsenceHeure = new TextFieldMask("99:99:99");
finAbsenceHeure.setFieldLabel("heure de fin");
right.add(finAbsenceHeure, agentAbsenceFormData);
when i click on a mission i have a FormPanel with fields and one of this fields is endHoure
final TextFieldMask endHoure = new TextFieldMask("99:99:99");
i want to fill it with the houre captured from my model data mission, i do that like this
endHoure.setValue(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
where (mission.getBeginDate) type is Date, but i have nothing in the field,
if i do :
endHoure.setEmptyText(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
it works, did you have an idea??
thank's
i have a TextFieldMask for puting the hours:
final
TextFieldMask finAbsenceHeure = new TextFieldMask("99:99:99");
finAbsenceHeure.setFieldLabel("heure de fin");
right.add(finAbsenceHeure, agentAbsenceFormData);
when i click on a mission i have a FormPanel with fields and one of this fields is endHoure
final TextFieldMask endHoure = new TextFieldMask("99:99:99");
i want to fill it with the houre captured from my model data mission, i do that like this
endHoure.setValue(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
where (mission.getBeginDate) type is Date, but i have nothing in the field,
if i do :
endHoure.setEmptyText(DateTimeFormat.getFormat("hh:mm:ss").format(mission.getBeginDate));
it works, did you have an idea??
thank's