Discussion:
What's the point of using a org.jdesktop.beansbinding.Validator ?
John Lussmyer
15 years ago
Permalink
Using the beans binding, I can specify a org.jdesktop.beansbinding.Validator.
Fine, I created one and specified it.
It lets me specify an error code and error message.
It looks like it SHOULD be called automatically by the bean.
Now, what's the point?
I can enter an invalid value into my text field that has the validator, and get no indication whatsoever that it is an invalid value.

I haven't found any settings anywhere that look like they would affect this.
John Lussmyer
15 years ago
Permalink
Now that I have the org.jdesktop.beansbinding source code I can see what the problem is.

While NetBeans will do all the bindings and assign the validators, it doesn't seem to create a BindingListener to actually DO something when a Validator fails.
There doesn't seem to be any way of doing this via the GUI editor, it looks like I'll have to create my own BindingListener and add it to the BindingGroup after the call to initComponents().

From: John Lussmyer [mailto:***@ABCLegal.com]
Sent: Tuesday, March 09, 2010 2:13 PM
To: ***@netbeans.org
Subject: [nbusers] What's the point of using a org.jdesktop.beansbinding.Validator ?

Using the beans binding, I can specify a org.jdesktop.beansbinding.Validator.
Fine, I created one and specified it.
It lets me specify an error code and error message.
It looks like it SHOULD be called automatically by the bean.
Now, what's the point?
I can enter an invalid value into my text field that has the validator, and get no indication whatsoever that it is an invalid value.

I haven't found any settings anywhere that look like they would affect this.
Michel Graciano
15 years ago
Permalink
Or you can file an issue against it, telling the workaround too.

Regards
...
--
Michel Graciano
Summa Technologies do Brasil Ltda.
http://www.michelgraciano.com
https://genesis.dev.java.net/
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/
John Lussmyer
15 years ago
Permalink
Ok, I did. Hopefully I didn't screw up too badly on the report...

From: Michel Graciano [mailto:***@gmail.com]
Sent: Wednesday, March 10, 2010 10:29 AM
To: ***@netbeans.org
Subject: [nbusers] Re: What's the point of using a org.jdesktop.beansbinding.Validator ?

Or you can file an issue against it, telling the workaround too.

Regards
On Wed, Mar 10, 2010 at 3:22 PM, John Lussmyer <***@abclegal.com<mailto:***@abclegal.com>> wrote:
Now that I have the org.jdesktop.beansbinding source code I can see what the problem is.

While NetBeans will do all the bindings and assign the validators, it doesn't seem to create a BindingListener to actually DO something when a Validator fails.
There doesn't seem to be any way of doing this via the GUI editor, it looks like I'll have to create my own BindingListener and add it to the BindingGroup after the call to initComponents().

From: John Lussmyer [mailto:***@ABCLegal.com<mailto:***@ABCLegal.com>]
Sent: Tuesday, March 09, 2010 2:13 PM
To: ***@netbeans.org<mailto:***@netbeans.org>
Subject: [nbusers] What's the point of using a org.jdesktop.beansbinding.Validator ?

Using the beans binding, I can specify a org.jdesktop.beansbinding.Validator.
Fine, I created one and specified it.
It lets me specify an error code and error message.
It looks like it SHOULD be called automatically by the bean.
Now, what's the point?
I can enter an invalid value into my text field that has the validator, and get no indication whatsoever that it is an invalid value.

I haven't found any settings anywhere that look like they would affect this.




--
Michel Graciano
Summa Technologies do Brasil Ltda.
http://www.michelgraciano.com
https://genesis.dev.java.net/
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/
Michel Graciano
15 years ago
Permalink
Well, if the developer needs more information he will ask you in time.

Regards
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=181797
...
--
Michel Graciano
Summa Technologies do Brasil Ltda.
http://www.michelgraciano.com
https://genesis.dev.java.net/
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/
Loading...