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 128704 - Bug in NBM design and Beansbinding
Summary: Bug in NBM design and Beansbinding
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 14:25 UTC by jlmssilva
Modified: 2008-02-28 16:09 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 jlmssilva 2008-02-28 14:25:59 UTC
The problem was detected in NB 6.0 and 6.0.1. In short beansbinding doesn't work in NB Modules. It works perfectly well 
in standard java applications but not inside an NB module. I've tried in NB 6.0 and 6.0.1 and in a fresh installation 
of NB 6.0 in a second computer to eliminate possibility of problems with my computer installation.
 
The apparent problem can be reproduced like this:
In an NB module, create a new form by creating new Window component. Create also a simple bean with only one field, 
compile the class and register it as a binding source by drag and drop it inside the form. Insert a single text field 
from the palette, by pressing the right button over it select bind->text, chose the bean from the first combo and the 
field from the second. 
 
So far, so good. Unfortunately an error appears in the form's auto-generated code in the line "private 
org.jdesktop.beansbinding.BindingGroup bindingGroup" and the error is "package org.jdesktop.beansbinding does not 
exist". This line is in the protected area so I can´t correct it even if I knew how. If I do ctrl-space in front of 
org.jdesktop. the only member that appear is "layout" not the ones that should 
appear "beansbinding","swingbinding","el" or "observablecollections".

Following a sugestion from a user in dev@openide.netbeans.org I've packaged beansbinding-1.2.1.jar into a library 
wrapper module but the problem persisted.
Comment 1 Jesse Glick 2008-02-28 16:09:41 UTC
As mentioned on dev@openide, you also need to make a dependency from your module to the lib wrapper.