NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
hayford.osei Posted via mailing list.
|
Posted: Thu May 10, 2012 3:22 am Post subject: [platform-dev] netbeans binding |
|
|
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
|
Posted: Fri May 11, 2012 9:35 am Post subject: Order of items |
|
|
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.
|
Posted: Fri May 11, 2012 11:11 pm Post subject: [platform-dev] Re: netbeans binding |
|
|
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 |
|
 |
|
|
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
|
|