Why are there no decent examples of CompositeCell in use within a CellTable?

孤人 提交于 2019-12-01 17:56:31

Could it be as simple as returning the EnergyOfferDTO in your column instead of null? (you might want to use an IdentityColumn)

You say in a comment in your code that the composite cell will delegate to its cells, but it's the responsibility of the column to give the value to the composite cell in the first place, then the composite cell will call each HasCell to extract the inner cell's value from the value passed to the composite cell.

As a side note, your composite cell's render method shouldn't loop over the hasCells list, it should simply call super.render(context, value, sb) (of course still decorating it with your appendHtmlConstant calls) which will do the job.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!