How do you set a column generator for a bound (BeanItemContainer) backed ta

Hello,

I’m looking for some advice on how best to change a Table’s presentation of a column that is generated automatically by a BeanItemContainer backed item data. I have an entity like this pseudo-entity

private Long id;
	private String targetBranch;
	private String sourceBranch;
	private Integer seq;
	private Set<Exclude> excludes;

I’d like to present the “Set” field as a link/button instead of the default, as is shown in the section 5.49 of the BOV.

I can use the example from the book easily enough on an unbound table, but how do you handle it when the table is bound to an entity or pojo? Any suggestions on how best to accomplish this?

Thanks in advance!
Randy

Generated columns work the same way independent of the container that is backing the Table.

If you add a generated column with the same name as one that comes from the container, the generated column is shown instead of the container column. Thus, you can customize the presentation there.

That’s perfect! Thank you very much!