FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Strange Netbeans 6.5.1 problem

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers
View previous topic :: View next topic  
Author Message
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Mon Oct 19, 2009 8:03 pm    Post subject: Strange Netbeans 6.5.1 problem Reply with quote

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
Back to top
View user's profile Send private message
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Mon Oct 19, 2009 9:13 pm    Post subject: Additional Issues Reply with quote

Since I moved to 6.5.1, I also notice that when i add a component manually
(as I said I have to do now), there is no binding to the page component and therefore I cannot seem to update the component.

I am really confused here. I am not entirely sure this started when I moved
to 6.5.1 but I am sure it was not happening when I was using 6.0.1.
Can someone give me some suggestion about this issue? I am stuck. Confused
Back to top
View user's profile Send private message
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Tue Oct 20, 2009 2:02 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Tue Oct 20, 2009 2:28 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Tue Oct 20, 2009 5:30 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Mari
Posted via mailing list.





PostPosted: Wed Oct 21, 2009 7:34 am    Post subject: Strange Netbeans 6.5.1 problem Reply with quote

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
Back to top
qlyde



Joined: 19 Oct 2009
Posts: 7

PostPosted: Wed Oct 21, 2009 6:38 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
whirledpeas



Joined: 22 Oct 2009
Posts: 3

PostPosted: Fri Oct 23, 2009 3:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Developers All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB