Re: DateBox can't be used with ValueBoxEditorDecorator

2011-03-04 Thread JosephLi
Colin,

Thanks for your reply. I understand from the source that the ValueBox
and the DateBox are from two totally separate branches so it might not
be possible to make the existing DateBox fits into the
ValueboxEditorDecorator bunch. But as a user,  if Google is pushing
the uiBinder, the requestFactory and the editor driver as the
framework that people should goto for building gui, then valuebox
compatible widgets should exists for the basic data types such as
Date. I am picking DateBox since its a textbox with a calendar popup,
so user can basically type the date in and there are chance the input
is not well formed and the validation framework should be able to
catch and report that thru the valueboxEditorDecorator.

I can't find a field there in the issue tracker to indicate thats
actually a feature request rather. But I believe the idea should get
across.

As for ur suggestions, thank you very much for that. I will take a
look at it over the weekend since if I can get something working. I
was leaning on using ur first option but hasn't gone too far with it
as it was rather late. Will see how it goes when I get time to work on
it shortly.

Thanks,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DateBox can't be used with ValueBoxEditorDecorator

2011-03-04 Thread Colin Alworth
This isn't a bug, this is just how the class is defined - DateBox is not a 
ValueBox, so attempting to pass it into a function that expects a ValueBox 
will naturally fail. 

A few options you have: Try making a ValueBoxBase instance that wraps a 
DateBox - this may or may not be possible, but will be necessary if you want 
to use the stock ValueBoxEditorDecorator, which requires access to a 
ValueBoxEditor. 

The other, preferred option would be to make something like a 
DateBoxEditorDecorator. Since DateBox doesn't have any parsing or validating 
stuff, it doesnt generate its own errors (so doesnt need a delegate), so 
this will have some differences from the ValueBoxEditorDecorator.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DateBox can't be used with ValueBoxEditorDecorator

2011-03-04 Thread JosephLi
opened an issue in the tracker, figured the GWT team can close it if
they have other plans: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6107

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



DateBox can't be used with ValueBoxEditorDecorator

2011-03-03 Thread JosephLi
Trying to use DateBox with ValueBoxEditorDecorator in uiBinder
thinking I could take advantage of the error reporting. But
unfortunately they can't be used together and at runtime it gives the
following error when I bring up the form:

[ERROR] [sandbox] - Line 50: The method setValueBox(ValueBoxBase) in
the type ValueBoxEditorDecorator is not applicable for the arguments
(DateBox)


I searched on the GWT issue tracker and here in this forum, doesn't
look like anyone reported it. Please stop me if the GWT team think I
shouldn't open an issue there thru the issue tracker.

Thanks,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.