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.
In NetBean 6.1 Create a project (File/new app/Web/Web application) with Visual Web JS Face In the Page1.jsp add a TextField, when you click on "Text" attribute in the textfield's properties and choose "use binding" you can "bind to an object" if you add this in the SessionBean1.java : private List toto=new ArrayList(); public List getToto() { return toto; } public void setToto(List toto) { this.toto = toto; } the "bind to an object" disapeared !! (sorry for my poor english ;) )
I just tried it out, and it works fine. One thing I need to make sure. Didn't you forgot by any chance to add imports for the List and ArrayList? If you did, it made the java source invalid and thus it disappeared from the binding list. But if you fix it, and added the imports (which I assume), then you should see the newly added property in the bindings. Please, confirm.
There is no answer. I suppose it is as I described. If it is different, please, reopen and provide more information. Closing it.
Sorry for the delay, the imports are OK : import java.util.ArrayList; import java.util.List; the java source is valid and the build is successful. When the java source is nok, the Class isn't visible in the binding list but you can see the tab "bind to an object". Here, i doesn't see "bind to an object" tab. if i replace "List" by "Object", the tab "bind to an object" become visible and i can bind with toto.
What version of 6.1 do you have? Because this is working on later versions, e.g. working ok on today's NetBeans IDE Dev (Build 200803302302).
Product Version: NetBeans IDE 6.1 Beta (Build 200803050202) Java: 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b01, i retry this : "File"/"New Project" Categorie "Web", Project "Web Application" Server : Glassfish, Java EE : "Java EE 5", Framework "Visual Web Server Faces" In the "SessionBean1.java" i paste the java code : import java.util.ArrayList; import java.util.List; And : private List toto=new ArrayList(); public List getToto() { return toto; } public void setToto(List toto) { this.toto = toto; } "F9" key -> "Build Successful" In the Page1.java add with the "Palette" a TextField. select it, in the properties, try to change the propertie "text" , in the screen "textfield1 - text" , select "Use Binding" rb and the tab "bind to an object" is not here !! If i change in the java source, List by Object, i can see the tab "bind to an object" and i can bind the textfield to toto... In which case, this tab isn't rendered ?
Well, when I try it out, the tab "Bind to an object" is there. So I still can't reproduce it. Anyway I am passing this to property editors now, where it belongs.
also can't reproduce, create sample project, add text firsld, check of bind exist. add code. fix imports/ save. switch to designer, binding exist. try to remove imports so code is correpted, switch to desgner. in navigator binding exist for textField1, I don't see any way to invoke binding from properties, so issue may not be applicable to 6.7 at all. also if it's about binding with corrupted code and can be fixed by code fixing it shouldn't be p1, and should be p2 or even p3.