PDA

View Full Version : setValue for TextFieldMask



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

sven
18 Aug 2010, 1:23 AM
I dont know the TextFieldMask class, it probabl does not come from GXT.

Can you please post some fully working testcase that imlpements EntryPoint and shows your problem?