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!

readonly table with input form dialog

user1688514Oct 9 2014 — edited Nov 1 2014

Jdeveloper 11.1.2.4.0, Release 2

Hi,

I'm struggling with the following situation for some time.

On my page I need to have a readonly table bound to entity (named entity2) and below it, there is a button for adding new row.

This button should open a popup with a dialog. In this dialog should be an input form bound to the same entity2.

After inserting values in the input form, I need to return from this dialog and to see my new row added in the readonly table.

On the popup, I have 2 listeners:

1.png

popupFetchListener="#{TestBean.newEntity}" : calls CreateInsert, when opening the popup

popupCanceledListener="#{TestBean.cancelEntity}" : calls Rollback, when pressing closing the popup

On the dialog, I have 1 listener:

dialogListener="#{TestBean.confirmDialog}"> : calls Commit, when pressing Ok on the dialog.

Here is my Bean:

2.png

The panelBoxLayout, is bounded to the PanelBox component where my read only table resides.

This page is actually the 2nd page from a train ( in the 2nd train stop).

In the first train there is entity1 which is parent of entity2.

The problem is that when I open the popup the 1st time, I can add a new row, but if I try to add another one, the popup doesn't open anymore, I

cannot even enter in debug mode in the TestBean.newEntity.

If however, I do exactly the same thing in a separate page, with a entity that is not child for another entity, all works well.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2014
Added on Oct 9 2014
7 comments
1,637 views