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!

Problem in customized button (is closing a popup and it shouldn't)

user8959800Aug 28 2013 — edited Aug 28 2013

Hi.

In my ADF application, in JDeveloper 11.1.1.7.0, I have a popup with its dialog and its default 'Ok' and 'Cancel' buttons.

In addition to this, I put a customized command button. I want it to, when it's clicked, going to the server, doing some things in a method and come back to the opened popup.

The fact is that, when clicking this customized button, the method is executed (action or actionListener, I have tested both), but popup is closing immediately.

So, I have to reopen the popup to see the actions done.

How can I avoid the popup gets closed when clicking this customized button?

Thanks in advance.

This post has been answered by Nitish_Potti on Aug 28 2013
Jump to Answer

Comments

Nitish_Potti
Answer

Set AutoCancel=disabled property on the popup. It will not close the popup.

Thanks

Marked as Answer by user8959800 · Sep 27 2020
user8959800

PNMK, your answer was perfect for me! Thank you!

So, my current execution is:

  1. Open popup
  2. Click the customized button
  3. The popup is closed, full page is reloaded and popup is reopened with button actions done.
  4. The page with "normal" appearence is shown.

How can I avoid the third step? It works, but it's a strange visual effect.

I want to click the button, the popup remains opened and shows the results. It's like you "close your eyes", blink for a moment...

I need like a Search/Query form behaviour. You put your data in the form, click "Search", popup stays opened and results appear in the table.

Nitish_Potti

Hi,

Can you put partialSubmit=true on the custom button.

Thanks

user8959800

Yes, that works again, PNMK, thank you!

Now, my table does not refresh contents. I debug the application, action method is invoked, I get the iterator, its ViewObject, etc. but new results does not refresh in the table.

I try with addPartialTarget, but this issue should be in another post.

Thanks again

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 25 2013
Added on Aug 28 2013
4 comments
161 views