Thanks for the reply, I did solve the problem, it was due to the primary key which was not null as you said.
now I am having trouble with java.lang.NullPointerException . Basically I am trying to show data in a drop-down list. I thought you might be able to help me. when the following method is invoked, I get the error
Yea, exactly, it was returning the null value, I shouldn't have placed that method in supplier session. I made another session, and placed the getSupplier method there, It is perfectly working now.
One thing else,
I have methods for update, create and delete, one thing I noticed that these method updates the database but not showing it. when I clean and build and re run the application, the changes can be seen.
I have session managed beans behind JSF and Stateless session beans in business layer. ANY IDEAS ?
and also, when I update the database, the form is not reset and I couldn't find any solutions for that, I guess there is something to do with the managed beans which I am not sure about. particularly, how to reset the form after updating the database.
Millions of thanks for your help. I appreciate it.
I think I found the problem, I am showing the data from a VIEW, then getting this data trying to update the database tables related to the view. it is perfectly working and the database gets updated. but the View still showing the same data retrieved previously, I have a session scoped managed bean and the data is retrieved from view with the following method and passing the list to the JSF datatable.
the session bean is stateless and local. the for the session bean is like:
So, now I want to find a way to show the updated data in the page. the main problem here seems to be different between tables and View. tables are updated but the view show same data. but when you clean and build the application, the changes are displayed
I appreciate your help.
Post by:autobot
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking