Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Databinding: validating combo on focusOut
Databinding: validating combo on focusOut [message #660452] Fri, 18 March 2011 13:46
Mike Moor is currently offline Mike MoorFriend
Messages: 20
Registered: November 2010
Location: Steffisburg, Switzerland
Junior Member
Hi,

on my login-screen i have a combo which contains all usernames (email-addresses) loged in once.

If a new user wants to log in he just writes his email adress in the combo. As soon as the combo looses focus I want to validate the email address. How can I do that with Databinding? All I found out was this:

bindingContext.bindValue(WidgetProperties.text().observe(usernameCombo), PojoProperties.value("mail.address").observe(model), new UpdateValueStrategy().setAfterConvertValidator(new EmailValidator(usernameCombo, "Your email address is your username.")), null);


The WidgetProperties.text() validates the value on modify-event. How can I do something similar but with validating on focusOut?

thanks for help!
mike
Previous Topic:ComboFieldEditor - setting default selection
Next Topic:Drag TreeViewer column at the edge and let the viewer scroll
Goto Forum:
  


Current Time: Thu Apr 25 20:05:22 GMT 2024

Powered by FUDForum. Page generated in 3.10107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top