Skip to Main Content

DevOps, CI/CD and Automation

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

oj-combobox with RESTDataProvider: options are displayed mulitiple times

User_XYK82Oct 27 2021

Hello everybody!
I try to use the new RESTDataProvider to feed the options of oj-combobox.
The desired output are seven keywords, but what happens is that the options (keywords) are displayed multiple times.
I have no idea how to control this behaviour. Is there anyone who has an idea what´s going wrong?

** HTML **
<oj-combobox-many id="keywordsDropDown"
value-options="{{selectedKeywords}}"
options="[[keywordRestDataProvider]]"
options-keys.value="id"
options-keys.label="text">
</oj-combobox-many>

**Typescript**
const optionsKeywordsDataProvider = {
url: self.keywordsURL,
keyAttributes: "id",
transforms: {
fetchFirst: {
request: async (options) => {
const url = new URL(options.url);
return new Request(url.href); },
response: async ({ body }) => {
const keywords = self.parseKeywordsResponseBody(body);
return { data : keywords };
} } } };
self.keywordRestDataProvider = new RESTDataProvider(optionsKeywordsDataProvider);

parseKeywordsResponseBody = (body) => {
var result = [];
if ((body._embedded != null) && (body._embedded.keywords != null)) {
result = body._embedded.keywords; }
return result; };

Comments

957742

Hi Arindam,

Foremost the application server should be configured/ enabled on SSL port. If the application server is enabled to use on SSL port, then by default you can access your webservice endpoint on HTTP/HTTPS ports.

You can also restrict the service consumers accessing the service on HTTP port by using @Policy annotation in your JAX WS web service and attach the 'HTTPS' token policy. Hope the below links will be helpful for you.

http://docs.oracle.com/cd/E12839_01/web.1111/e13713/transport.htm#WSSOV246        ( Example 3-1 )

https://docs.oracle.com/cd/E21764_01/web.1111/e13713/message.htm#WSSOV268

User_2E0J1

Thanks. These documents talk about SOA 11g. Does the same apply to 10g as well? I am working on SOA 10.1.3.4.

Regards,

Arindam

957742

Hi Arindam,

The links provided applies for 10g as well. I believe you are working on Java web services and it holds good for 10g too.

1 - 3

Post Details

Added on Oct 27 2021
5 comments
119 views