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!

ADF table ContextualEvent not working

CesarHMay 11 2022

Hi,
I created a sample ADF project with a page and a data control.
The page has a table with 3 rows, when I run the project in Integrated Weblogic and click on a row (any row) for the first time nothing happens. When I click the second time, and following, the ContextualEvent is triggered.
Can you help me?
Thanks

Comments

Duncan Mills-Oracle
Answer

To play nicely with oj-validation-group, you are correct you need a valid property which would be defined in the metadata like this:

   "valid": {

     "displayName": "Valid",

     "description": "The current valid state of the component.",

     "type": "string",

     "value": "valid",

     "enumValues": [

       "invalidHidden",

       "invalidShown",

       "pending",

       "valid"

      ],

     "writeback": true,

     "readOnly": true,

     "visible": false

  },

You will need to maintain the value of that writeback property as the internal state of the component changes.  The invalidHidden state is for the scenario where errors had previously been shown but then, via the oj-messages component the user choose to "hide" the message.  How best to handle the management of this valid state depends on the exact setup of your component - contact me internally and we can go through the best approach

Marked as Answer by Jan Stanicek-Oracle · Sep 27 2020
1 - 1

Post Details

Added on May 11 2022
8 comments
108 views