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 load Resource Bundles from a database table and use to Business Rule?

Jerry Wang 1116244-OracleMar 3 2017 — edited Mar 6 2017

We are using ADF 12.2.1.2 for ADF RESTful webservice application and we meet a problem, please help.

In Business Rule validation we are using resource bundle to show the error message.

pastedImage_0.png

Now we want to load the resource bundle from a db table so that we can dynamically change the validation information out of design time.

We try to use list resource bundle and the key/value information can be saved in java class and used to validation.

pastedImage_1.png

But seems ADF just reads the resource bundle information from the static final variable contents, not from method getContents(). Because even if I return empty array and change the variable value, I got the resource bundle information still from the variable.

pastedImage_2.png pastedImage_3.png

We think we can load the data from a db table in getContents() method, but from the test results seem this solution is not working.

Do you know how to load Resource Bundles from a database table and use to Business Rule?

Thanks

Jerry

This post has been answered by SanjeevChauhan on Mar 4 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2017
Added on Mar 3 2017
6 comments
718 views