Whenever I need to do that I simply use an ognl call in the columns
binding to retrieve the list of columns that should be shown.

<component id="table" type="contrib:Table">
 <binding name="source" value="source" />
 <binding name="columns" value="columns" />
</component>

Just as you would need a getSource method for this in the container,
so do you need a getColumns method that returns a string.  The string
follows the same format as always.

I generally use this in conjuction with a Palette or some other way to
let the user decide what columns to render.

-Mike

On 5/9/06, John Menke <[EMAIL PROTECTED]> wrote:
How can you add or remove a column at runtime with the tableView component?

-jm



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to