2 Replies Latest reply on Mar 26, 2007 11:43 PM by Alex Narinsky

    How to sort a table by a column corresponding to a transient

    Alex Narinsky Newbie

      I use seam-gen to generate a table view corresponding to a database table. Column sorting works fine using f:param name="order"
      (f:param name="order" value="#{projectsList.order=='name asc' ? 'name desc' : 'name asc'}"/>. )

      However, this table includes only the columns that correspond to the database table. I can add transient getter methods to the entity bean and display the results on the table. However, then sorting does not work because a column for the transient getter does not exist.

      Is there any way to sort a table by the columns corresponding to transient getter methods?