我正在使用GWT ext,并尝试从page获取值,并将其设置在pojo类中。
除了日期字段之外,所有的值都是使用
(TimeField) ComponentMgr.getComponent(id2)).getText())....
但是,当对日期字段使用相同的代码段时,它无法执行。
有没有人可以帮我解决这个问题......
发布于 2011-07-25 15:44:36
我还多次使用日期字段。新建字段= DateField DateField();field.getValue();
这将返回值作为Date,如果你的pojo有instance.So属性,那么你需要解析它。对于字符串值,您应该使用getText()方法。
https://stackoverflow.com/questions/637886
复制相似问题