I have just begun with Vaadin and for my project I need something that allows to react to text selection events over labels / textfields, etc.
I was looking around for some component and I found Textfield has some methods added in last version for select all text, etc, but no events at all and in addons I could not find anything
So my next idea is to try to create a component to do this (I know it’s possible with gwt), so please give me some advice (maybe there’s something I didn’t find out there )
Thank you guys and keep on the good work!
Hwangar
Spain
You are right, since 6.4 you can defined the selected text or cursor position from the server side. There is still no official support for transferring this data to the server side.
I don’t know exactly your use case, but I’d guess it is good way to extend the default TextField on both server and client side. The cursor position can already be sneaked by extending server side (http://dev.vaadin.com/ticket/5218#comment:1) TextField, but you’ll probably need some more code on both sides.
For more information about creating extensions, you should refer to our manual and Add-On help pages: