Strange Netbeans 6.5.1 problem

View: New views
7 Messages — Rating Filter:   Alert me  

Strange Netbeans 6.5.1 problem

by qlyde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wondering if anyone has had this problem.



When I use the netbeans visual editor and drag a component to a page, it will not add the component to

the import statements and it won't create the getter/setter methods on the page. I have to do it manually.



I started to notice this when I migrated from 6.1 to 6.5.1. Is this a bug introduced in 6.5.1 or is it something else?

Maybe there is a configuration choice that needs to be enabled?



Thanks. [Crying or Very sad]





Strange Netbeans 6.5.1 problem

by qlyde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could it be the change from 1.4 to Java EE 5.0?



In netbeans 6.0 you drag a component to the canvass, netbeans

automatically added the import, added getter/setter methods and

bound it to the page. Looks like 6.5 does none of this.



I'm not sure exactly whether I should be doing this manually or not.

Could someone pls advise me? I notice that when I add the component's

methods, i can then access it from the page. But it's value is always

0, even when something is set on the page. Do i need to bind the component

to ${Page.theComponent} to see a value?





Strange Netbeans 6.5.1 problem

by qlyde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I seem to be carrying on the bulk of this conversation. Would be nice to get some feedback here.



I reloaded netbeans 6.0 and sure enough it performed the things that 6.5 does not. When I dragged a component to the canvas the import was done for me, the object created and viewable from the java code view.

I am at a loss to understand why this does not work in 6.5 and how I can

work with 6.5 in an equivalent way.





Strange Netbeans 6.5.1 problem

by qlyde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I guess I am going to have to change IDEs as I still cannot pinpoint the problem here. I also can't stay on 6.0 forever.



For every new component I have to:



add the import for it, add the getter/setter methods, manually bind it to

the page. All of these steps were automatic in netbeans 6.0 I don't understand why they were removed in 6.5.1.



Can anyone enlighten me here?





Re: Strange Netbeans 6.5.1 problem

by Marián Petráš :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

qlyde,

at first, I think that it would be better if you posted your question to
mailing-list 'nbusers' instead of 'nbdev'.

Then, I am not sure what "visual editor" you mean. I guess that there
are multiple types of visual editors in the IDE. The basic visual editor
for editing Swing forms does not generate any getters/setters as far as
I know. Please try to specify the type of visual editor.

I suggest that your re-send your question to 'nbusers'. There should be
much more people watching (reading).

You might also try a newer version of NetBeans, such as 6.7.1 or even 6.8M2.

Marián



qlyde wrote:

> Wondering if anyone has had this problem.
>
> When I use the netbeans visual editor and drag a component to a page,
> it will not add the component to the import statements and it won't
> create the getter/setter methods on the page. I have to do it
> manually.
>
> I started to notice this when I migrated from 6.1 to 6.5.1. Is this a
> bug introduced in 6.5.1 or is it something else? Maybe there is a
> configuration choice that needs to be enabled?
>
> Thanks. [Crying or Very sad]

Strange Netbeans 6.5.1 problem

by qlyde :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mari,



Thank you for answering. These are my first posts on this Forum.

The visual editor is the JSF editor that comes with netbeans 6.5.



I am hesitant to upgrade due to this strange behavior. I have gone back to

6.0.1 where I do not observer it. And considering moving to a different tool.



I will try nbusers mailing list.





Strange Netbeans 6.5.1 problem

by whirledpeas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Qlyde,



I did a little reading about this when I saw your post. It appears that

the way of doing things as you describe them ended in 6.0.1. If I understand

what I read, the tool discourages putting all of the backing bean behavior on

the page. Instead you need to build beans for each component and bind them in the jsp view.



I guess the visual editor is just for component placement.