I am developing a web application and I use JSF and PrimeFaces frameworks and external Geo Map API.
The Map API gives me POI_id
when I clicked on a POI on the map. But it's not enough for me, I want to get information about POI from a servlet and display it in a pop-up window. (fields like address, name, phone number, etc.).
So, I need to send an HTTP request to the servlet in my managed bean when I click the POI on the map.
I can get poi_id
, but I cannot send this id to the backend managed bean, so getting the POI information does not seem possible.
How can I send poi_id
to my managed bean and handle the response to display in a popup window?