poptanimukesh / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

Spinner widget - pasted text is never validated #299

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?
gwt 1.7 and gwt-incubator-july-14-2009.jar

What OS and browser are you using?
Windows XP SP3 and Google Chrome

Do you see this error in hosted mode, web mode, or both?
I have only tried it in web mode.

(If possible, please include a test case that shows the problem)
http://collectionofdemos.appspot.com/demo/com.google.gwt.demos.spinner.Spin
nerDemo/SpinnerDemo.html

Hopefully using the test case you have generously provided, what steps will 
reproduce the problem? 
1. Select the text inside of the date spinner's text box and copy it
2. Delete the text inside of the value spinner's text box and paste the 
text copied in step 1
3. Move focus to somewhere else (i.e. click the Show Date button)

What is the expected output? What do you see instead?
I expected to see the text in the value spinner return to the last valid 
value but it excepted the string "August 12, 2009". Pasting "990" into the 
text box also never gets validated as evident by clicking either of the 
arrow images after pasting the value. If the text was "0" and then I paste 
"990" and then I click the up image I would expect for "990" to change to 
"991" but it actually changes to "1" because "990" was never validated or 
stored.

Workaround if you have one:

Please provide any additional information below,  and thank you for taking 
the time and effort to report this issue, as good issue reports are 
critical for our quest to make GWT's new widgets and libraries shine.

Original issue reported on code.google.com by mfulto...@gmail.com on 12 Aug 2009 at 6:54