If you want your front end application to display certain
properties of records in results lists, you must specify these properties in
the
fieldnames
property of the
resultslistdefaultconfig
bean in
assembler-context.xml
.
For
example, the following
fieldnames
definition specifies eleven properties that
can be displayed with the records to which they belong:
<property name="fieldNames"> <list> <value>product.id</value> <value>product.code</value> <value>product.name</value> <value>product.brand.name</value> <value>product.short_desc</value> <value>product.short_desc.Snippet</value> <value>product.price</value> <value>product.min_price</value> <value>product.max_price</value> <value>product.img_url_thumbnail</value> <value>product.review.avg_rating</value> <value>product.review.count</value> </list> </property>
Note
Only the properties that you specify in the
list
attribute of the
fieldnames
property can be displayed with their records
in results lists. If you delete the
fieldNames
property, all the properties of each record
are displayed with the record.