The autoSuggestJson.jsp
page requests the auto-suggestions from the Assembler and renders the dimension search values. The ContentRequestURLDroplet
is used to create a URL for each dimension search value.
<json:object name="dimensionSearchResults"> <json:array name="dimensionSearchGroups" var="content" items="${contentItemMap['AutoSuggestPanel']}"> <c:forEach var="autoSuggest" items="${content['autoSuggest']}"> <c:forEach var="dimensionSearchGroup" items="${autoSuggest['dimensionSearchGroups']}"> <json:object> <json:property name="displayName"> <dsp:include src="${displayEndecaResourcedValueFragment.URL}" otherContext="${displayEndecaResourcedValueFragment. servletContext}"> <dsp:param name="key" value="dimensionSearchGroup.displayName"/> <dsp:param name="contentItem" value="${dimensionSearchGroup}"/> </dsp:include> </json:property> <json:array name="dimensionSearchValues" items="${dimensionSearchGroup['dimensionSearchValues']}" var="dimensionSearchValue"> <json:object> <dsp:droplet name="ContentRequestURLDroplet"> <dsp:param name="url" value="${UIConfig.contextRoot}${searchResultPageURL}"/> <dsp:param name="navigationAction" value="${dimensionSearchValue}"/> <dsp:oparam name="output"> <dsp:getvalueof var="contentURL" bean="ContentRequestURLDroplet.url"/> </dsp:oparam> </dsp:droplet>
DimensionSearchValues
are NavigationActions
that populate the pop-up search term page that is displayed to the agent. The page uses the displayEndecaResourcedValueFragment
to display the auto-suggestion resource values.