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!

Delete in af:table always delete first row when using ExecuteWithParams

Guillaume le ConquérantApr 28 2015 — edited Jun 3 2015

Hi everyone,

I got a page with a master form and two details af:table related to the master. When I'm trying to delete a row in a detail af:table, it always delete the first row, no matter which row I've selected before. The table has a rowSelection=single and the row is getting properly visually selected. I delete the row using a "delete hyperlink" on each row, but I select the row first. The delete is calling a binding (or a method in bean deleting the iterator's current row, I've tried both, none of them work)

The page bindings has an ExecuteWithParams setting the proper ID to edit on the master iterator and an InvokeExecuteWithParams set to renderModel. If I set the refresh condition to none and I hard-code an ID in the bind variable in the Model, I'm able to delete the selected row.

Also, I don't know if this information is useful, but if I set the iterator ChangeEventPolicy to PPR, when I select a row, it always select the first row.

Any ideas what I could do wrong? Is this a bug?

I'm using JDev 11.1.1.7

Thanks,

Guillaume

This post has been answered by Ashish Awasthi on Apr 30 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2015
Added on Apr 28 2015
19 comments
2,622 views