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!

How to Enable or Disable toolbar buttons when the table marked rowSelection as multiple.

user8012501May 9 2016 — edited May 10 2016

Hi,

I am working on JDEV 12.2.1

I have a requirement when i need to enable or disable button based on the row selection.

1. I have af:table with rowSelection='Multiple'

2. I have 2 toolbar buttons, 'Yes','No.

3. When I select a row(s) and click on button Yes, all the selected rows status changed to Y. Similarly with No.

4. When the Status 'Y' row selected then, No button should enable and Yes button should disable, Similarly for No. But when user selects combination of rows(because Multiple is enable) then both button should enable.

To achieve this, I override selectionListener in my backingBean and added flag to enable the buttons. Things working fine when i select single row, but when i marked the row as Yes/No row status updating but button is not disabling. I have partialTrigger on buttons with table id as well.

Any inputs highly appreciate.

-Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2016
Added on May 9 2016
5 comments
2,119 views