Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Detail entity with row key null cannot find or invalidate its owning entity

526059Sep 29 2011 — edited Feb 29 2012
created a master detail page(jspx). Master in form and detail in table layout.
set dbsequence for primary keys. Create buttons for master and detail work fine.

Changed the page to page fragment and called the task flow from another page as region.
Now when I try to create record in detail it gives below error message.

'Detail entity with row key null cannot find or invalidate its owning entity.'

Also it erases all the data that was entered in master record.


I tried adding the below code in the viewrowimpl. The error is gone but
all the master data is erased when I click the detail create button.
    @Override
    public void setNewRowState(byte b) {
        if (b != Row.STATUS_INITIALIZED || getNewRowState() != Row.STATUS_NEW) 
        {
          super.setNewRowState(b);
    }
    }
why is it behaving differently when I use page fragment and use it as region ??

I am using jdev 11.1.1.5

suggestions please...

Edited by: Avinash on Sep 29, 2011 8:52 AM

Edited by: Avinash on Sep 29, 2011 8:55 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2012
Added on Sep 29 2011
5 comments
1,403 views