Solving Null Entity Problems with JPA Data Controls in PS1

Posted by shay.shmeltzer on Oracle Blogs See other posts from Oracle Blogs or by shay.shmeltzer
Published on Mon, 15 Mar 2010 14:05:10 -0800 Indexed on 2010/03/15 22:20 UTC
Read the original article Hit count: 500

Filed under:
|

Turns out there is a slight bug that seems to prevent you from doing interactions (update, scroll) with the results of a JPA named query that you dropped on a page using ADF Binding.

People are running into this when they are doing the EJB tutorial on OTN for example.
The problem is that the way the binding is set up for you automatically doesn't allow you to actually access the iterator set of records to do follow up operations.

When I last checked this was solved in the next release of JDeveloper, but in the meantime there is a quick simple way to resolve the issue by changing the refresh condition of the oiterator in your page binding.

Here is a little demo that shows the problem and the solution:

© Oracle Blogs or respective owner

Related posts about ejb

Related posts about jpa