Handling Dynamic data | Community
Skip to main content
Lokesh_Shivalingaiah
Level 10
October 16, 2015
Solved

Handling Dynamic data

  • October 16, 2015
  • 3 replies
  • 1236 views

What is the best practice for the below scenario.

Scenario : Search for Flights, Hotels for a given dates and display the result on the next page with the details of each flight or hotels. Result list are got from the response of a webservice.

What is the best or optimized way to design the template (content.jsp) for the result list page to show the hotels or flights

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this article  - it will give you an idea of how to work with Dynamic Data/UIs in CQ. It calls an OSGi service that invokes a web service. The result data is dynamically displayed in this AEM UI:

[img]JSONWriter.png[/img]

Notice the drop-down. The web site visitor selects the drop-down that represents USA ZIP codes. THen the service invokes the AEM SERVICE that talks to a 3rd party SOAP Stack (web service). The service returns the data and the JSP populates the UI. It will really get you familiar with working with dynamic data and CQ front ends:

http://helpx.adobe.com/experience-manager/using/using-jsonwriter-objects-display-cq.html

3 replies

smacdonald2008
Level 10
October 16, 2015

Write a service that gets the data (different ways depending how the data is served) and then write the data to a front end component.  There are many rich User Interface controls that display data nice. Depending on the control, you may have to encode the data as JSON. You can develop a CQ component that an author can drag from the side rail onto a page too.

Lokesh_Shivalingaiah
Level 10
October 16, 2015

So front end component here will just be a jsp/html right ?

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See this article  - it will give you an idea of how to work with Dynamic Data/UIs in CQ. It calls an OSGi service that invokes a web service. The result data is dynamically displayed in this AEM UI:

[img]JSONWriter.png[/img]

Notice the drop-down. The web site visitor selects the drop-down that represents USA ZIP codes. THen the service invokes the AEM SERVICE that talks to a 3rd party SOAP Stack (web service). The service returns the data and the JSP populates the UI. It will really get you familiar with working with dynamic data and CQ front ends:

http://helpx.adobe.com/experience-manager/using/using-jsonwriter-objects-display-cq.html