Class Name

atg.repository.search.refinement.RefinementValueDroplet

Component

/atg/commerce/search/refinement/RefinementValueDroplet

This servlet bean takes as input a facet selection value and the repository ID of the refinementElement that represents the facet, and outputs the value in a more human-readable form. The value is formatted by the /atg/commerce/search/refinement/DefaultMetaPropertyValueFormatter component, which is specified by the defaultValueFormatter property of the servlet bean.

The DefaultMetaPropertyValueFormatter formats the following data types:

You can also write custom formatters for specific properties. For more information, see the Faceted Search chapter.

Input Parameters

refinementId
The repository ID of the refinementElement that represents the facet in the refinement repository.

refinementValue
The facet value returned by the search engine.

Output Parameter

displayValue
The formatted value.

Open Parameters

output
This open parameter is rendered if no errors occur when formatting the value.

error
This open parameter is rendered if any errors occur when formatting the value.

Example
<dsp:droplet name="/atg/commerce/search/refinement/RefinementValueDroplet">
  <dsp:param name="refinementId" value="${facetHolder.facet.id}"/>
  <dsp:param name="refinementValue" value="${facetValueNode.facetValue.value}"/>
  <dsp:oparam name="output">
    <dsp:valueof param="displayValue"/>
  </dsp:oparam>
</dsp:droplet>