Datefield window doesn't close directly

0 views
Skip to first unread message

retha pasalli

unread,
Jul 2, 2009, 12:27:33 AM7/2/09
to GWT-Ext Developer Forum
Hi all,

I'm using a datefield widget but when I run the project, the datefield
window can not close directly after I choose a date. Can you help me?

Here is the code :

Datefield tanggalLahir = new DateField ("Tanggal Lahir",
"tanggalLahir", 120);
tanggalLahir.setFormat("d MMMM yyyy");
tanggalLahir.setAllowBlank(false);
tanggalLahir.addListener(new FieldListenerAdapter(){
public void onChange(Field field, Object newVal, Object
oldVal) {
Window.alert("tanggal!");
tanggalLahir.hide();

}

}
);

And I added tanggalLahir in a Panel widget. The class consisting this
code is extending Composite, so I can call it from the entry point.
Can you help me fix the problem? Thx before..

Regards
Retha
Reply all
Reply to author
Forward
0 new messages