How can I put a widget in a CellTable Cell?

后端 未结 5 2086
抹茶落季
抹茶落季 2021-02-04 03:35

I am using CellTable to show my records but now the thing is I want show a select box when user clicks on a cell. One more thing is that select box is my own widget, not a prede

5条回答
  •  无人及你
    2021-02-04 03:51

    Some time ago I faced with the similar problem (tried to insert a custom widget into CellList cell), but unfortunately did not find an easy solution.

    Generally, you can implement specific cell class, extending AbstractCell or ActionCell. In this case you will have to override render() method and implement your own rendering. Good example is given in AbstractCell class javadoc.

提交回复
热议问题