This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93893

Summary: Value binding dialog vs. Prop window for validator prop
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: Gregory Murphy <gjmurphy>
Status: RESOLVED WONTFIX    
Severity: blocker Keywords: RELNOTE
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description bugbridge 2007-02-01 22:56:05 UTC
Original status: 4-Defer; Suggested Status: RESOLVED (Resolution:REMIND)

Original Target Release: mako_dev; Suggested Target Milestone : Dev

These items should be added to the Keywords: RELNOTE

Description:
Testing using 5/27 kit
Steps:
drop a text field
drop a length validator on the canvas
open the Property Bindings dialog and:
1. Click validator property on the left hand list
2. Click the validator instance on the right hand list
> look at the binding expression in the dialog
> it needs to be something like: #{Page1.lengthValidator2.validate}
> but is missing the .validate part

in the property window if you select the dropdown arrow for the validator
property you see a list of validators appear.  If you select one of the
validators in the drop-down, the inline text is automagically convertered
to the correct binding expression of the form: #{Page1.lengthValidator2.validate}

apologies in advance for reopening this one.  Drop me a email if based on this
information it should be closed still and I will do that.
xxx@xxxx 2004-05-27

Oh I should add, the validators are all greyed out in the list on the right
hand side...makes it look like they can't be picked.  Which is kind of right.

Evaluation:
This isn't a bug.  This is the "Property Binding Dialog" and validate is a
MethodBinding.  #{Page1.lengthValidator2.validate} is a method binding pointing
to the 'validate' method of the Page1.lengthValidator2 instance.  'validate' is
not a property...
xxx@xxxx 2004-05-27

Making this an RFE to *potentially* show methods in the Property Binding Dialog
(post 1.0)
xxx@xxxx 2004-05-28
- deva look around ValueBindingPropertyEditor, BoundPropertyPropertyEditor,
ValueBindingPanel
xxx@xxxx 2004-12-14 20:29:22 GMT
- Passing on to Joe as he seems to own the Binding stuff
xxx@xxxx 2005-05-24 04:59:16 GMT

Workaround:
Add the .validate suffix to the binding expression in the dialog and apply.
Comment 1 Peter Zavadsky 2007-02-01 22:56:51 UTC
See above.