TextField.selectAll() not working for me in Vaadin 6.4.8

Hello,

I’m new here. :smiley:

I have updated my Vaadin install from 6.3.4 to 6.4.8. I am trying to use the new TextField.selectAll() API. I am running the server within Eclipse, and have clicked the button to recompile Vaadin with GWT. When I invoke the API, it seems that there is no change in the UI. I.e. there is no text selected. I have tried this with several different browsers. I also tried building my code to a war file and running directly from Tomcat, with the same results. Since I was assuming that it had to do with the way I updated Vaadin, I thought that maybe the new code wasn’t being picked up, but it seems I’ve done everything correctly to update Vaadin.

Any thoughts? Is selectAll working and I have overlooked an important step in updating?

Thanks,
David

It
seems to work
just OK. Well, I’m using 6.5.0.pre1 and text field components have been reworked for 6.5, but there should not be difference.

I hope you don’t set the focus elsewhere to some other component.

It turns out that it does work when I build a war file and deploy it directly to Tomcat and run from it. So it would seem to be an error in how I applied the Vaadin changes in my Eclipse environment. I wish I could figure it out, because I want to be able to run out of Eclipse for debug purposes (and to save the hassle of building the war every time).

Could it be so that you have an old version of the widgetset in use when running the application from Eclipse? Try to add a ?debug parameter to the URL of the application and check the widgetset version.

That’s it!

[i]
Vaadin application servlet version: 6.4.8
Widget set is built on version: 6.3.4

Warning: your widget set seems to be built with a different version than the one used on server. Unexpected behavior may occur.
Warning: widgetset version 6.3.4 does not seem to match theme version
inserting load indicator
[/i]

Now I just need to figure out why clicking the button in Eclipse isn’t rebuilding the widget set.

Have you tried the “Clean…” and “Clean Tomcat Work Directory…” options from the context menu of your Tomcat in Eclipse?

Thanks… it turns out the problem was that I have two widget libraries, and I had to select each of them (*.gwt.xml) and click the button. All is well now. Thanks for your help and patience with a n00b!