How to set selected a AbstractSelect item?

Exemple:

TextField tf = (TextField) getField("num");
		
final Select sNomeReduzido = (Select) getField("nomeReduzido");
		
tf.addListener(new TextChangeListener() 
{
 public void textChange(TextChangeEvent event)
 {
   sNomeReduzido.select(event.getText());
 }
});

It’s no work for me.

ok


http://magi.virtuallypreinstalled.com/book-examples/book/?restartApplication#component.select.databinding.adding.givenitemid

The solution works well if the value is a string but if it’s a more complex object it doesn’t seem to work also defining correctely hashCode() ane equals().
Any suggestion?
Tullio