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 196386 - Binding problem Alternate Values - Incomplete path value
Summary: Binding problem Alternate Values - Incomplete path value
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@guibuilder
URL: http://wiki.netbeans.org/TS_61_BeanBi...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 08:29 UTC by asenk
Modified: 2011-09-08 07:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asenk 2011-03-07 08:29:49 UTC
*  Comments: If the binding source path is incomplete, you can set your own value for target property. For example if you will bind your component value to some custom User object to its property user.address.zipcode and user object will containt empty or null address component. 

   1. Add new jLabel component and rename it to "incompletePathLabel"
   2. Invoke bind dialog for text property of incompletePathLabel
   3. In Bind dialog in Binding source select Form
   4. In Bind Expression select iconImage->accelerationPriority property (iconImage property is null, path is incomplete)
   5. Go to Advanced tab and check "Unreadable Source Value" checkbox
   6. Click "..." button for Unreadable Source Value property and in popup dialog type text "path is incomplete" and press OK 

EXPECTED RESULT: Binding will change the text property of incompletePathLabel to "path is incomplete". It will use alternate value, because binding source expression path is evaluated as incomplete path.

REAL RESULT: The text property of incompletePathLabel is changed to "" (empty String).
Comment 1 Jan Stola 2011-09-07 13:58:10 UTC
I am sorry, I am not able to reproduce this problem. I tried the described steps on two machines (Windows and Linux) and it worked correctly on both. Are you still able to reproduce it?
Comment 2 asenk 2011-09-08 07:30:20 UTC
Product Version: NetBeans IDE Dev (Build 201109070600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)

I'm not able to reproduce it on this build too. I agree with Worksforme.