NetBeans Forums

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

[platform-dev] netbeans binding

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
hayford.osei
Posted via mailing list.





PostPosted: Thu May 10, 2012 3:22 am    Post subject: [platform-dev] netbeans binding Reply with quote

I have a crub application in progress.
I would like to bind my data from DB to some dropdown list or Combox.

I tried to use add other and added an EntityManager (Eclipselink). At
this point the app runs fine.
I added the Query select c from customer c... The application fail
with null pointer

I suspect the issue is with either definition of EntityManager or
Query... they way input this in the graphical interface.
Can anybody point out where am going wrong...

I really need that functionality...
ps If i write the code without the gui the query runs fine.
Back to top
skyhook



Joined: 13 Apr 2012
Posts: 22

PostPosted: Fri May 11, 2012 9:35 am    Post subject: Order of items Reply with quote

Have you right order of the creating the object?

First you have to create Entitymanager object, after that query. I was using this crud tutorial and it works for me.
Back to top
hayford Osei
Posted via mailing list.





PostPosted: Fri May 11, 2012 11:11 pm    Post subject: [platform-dev] Re: netbeans binding Reply with quote

Hello, what works for you?
Are you able to bind your result to a ComboBox or JList..

I too have followed the tutorial and it works i want to extend that.. so as to populate a combobox, jList with the result.

Any ideas will be welcome.
On Fri, May 1, 2012 at 4:35 AM, skyhook <address-removed ([email]address-removed[/email])> wrote:
Quote:
Have you right order of the creating the object?

First you have to create Entitymanager object, after that query. I was using this crud tutorial and it works for me.







--
Distant Waters Cannot Quench Your Thirst
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users 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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo