views:

909

answers:

2

Hi, I am using GWT ext and trying to get the values from page and setting it in pojo class.

Except date field all the values are obtained using

(TimeField) ComponentMgr.getComponent(id[2])).getText())....

But while using the same snippet for date field it fails to perform.

Can any one help me with this issue please......

+1  A: 

This works fine for me:

dateField.getText();

Sai Prasad
A: 

If you want to convert a string to a date field, you'll have to parse it. Bear in mind that there are already out-of-the-box date pickers in GWT 1.6. If you're using a version that does not come with date pickers, there are several projects like this.

Miguel Ping