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 131282 - If i use an attribut List in a SessionBean the "Bind to an Object" disapeared
Summary: If i use an attribut List in a SessionBean the "Bind to an Object" disapeared
Status: RESOLVED INCOMPLETE
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 12:08 UTC by myardin
Modified: 2009-03-17 11:40 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 myardin 2008-03-27 12:08:10 UTC
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 ;) )
Comment 1 Peter Zavadsky 2008-03-27 18:39:51 UTC
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.
Comment 2 Peter Zavadsky 2008-03-31 17:33:14 UTC
There is no answer. I suppose it is as I described. If it is different, please, reopen and provide more information.
Closing it.
Comment 3 myardin 2008-03-31 17:57:38 UTC
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.
Comment 4 _ krystyna 2008-03-31 23:14:25 UTC
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).
Comment 5 myardin 2008-04-01 08:20:52 UTC
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 ?
Comment 6 Peter Zavadsky 2008-04-07 20:47:58 UTC
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.
Comment 7 Sergey Petrov 2009-03-17 11:40:05 UTC
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.