Fork me on GitHub

Row ID


In some particular cases, you may need row ID. For that purpose, you can use the following tag attributes :

  • htmlRowIdBase : this attribute will be evaluated as a member of objects contained in the data collection.
  • htmlRowIdPrefix : this attribute is just a string which will be prepended to the htmlRowIdBase attribute.
  • htmlRowIdSufix : this attribute is just a string which will be appended to the htmlRowIdBase attribute.

Example If you want row id like person_1, person_2, where 1 and 2 corresponds to the id attribute of the Java object person, just define :

  • htmlRowIdPrefix = person_
  • htmlRowIdBase = id

Example 2 If you want row id like id_1_header, id_2_header, where 1 and 2 corresponds to whatever attribute of a Java object, just define :

  • htmlRowIdPrefix = id_
  • htmlRowIdBase = id
  • htmlRowIdSufix = _header

Just remember that the htmlRowIdBase will be evaluated as a property of an object contained in the data attribute.
The two others are just strings.