Answer the question
In order to leave comments, you need to log in
How to send several requests, using filters, and process the received response on a new page?
There is a search, in which there are 5 parameters, it is necessary to send requests to the server, to different operators (there are about 10 of them), using these filters. And the received request in JSON format should be displayed on a new page and apply template styles. How to do it? How to act? What to read?
Search code on jsfiddle.
Answer the question
In order to leave comments, you need to log in
1. Read about managed beans . The knowledge obtained from the article should be enough to collect the values of all filters from the state of the component.
2. For a parallel request to an array of sources, you can use Promise.all or look for implementations of Promise.settled. Read this thread for a discussion of the problem of a rejected Promise. Also write the results in state.
3. Read about lists and keys . The knowledge gained from the article should be enough for you to draw the received data in the form of a list.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question