Default for displayed columns of Search Result Table

Hi,

I have a “Search Result Table” component (com.webmethods.caf.faces.search.SearchResultTable) with a large set of columns. By default I want to display only some of these columns.

The portlet has a preference “Column Display” with user scope - so each user can select the columns he or she wants to have displayed in the edit view. I would like to use this functionality but I would like to provide a default column set to display. So the user sees only some columns when he visits the list first.

Any idea on how to achieve this?

Regards,
Mathias

OK - I just found the solution which is quite obvious to be honest. To provide default values for a portlet preference you need to fill the “Value” property of the portlet preference. So filled the value of the preference “columnDisplay” with a list of column ids I want to have as default.

Regards,
Mathias