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

后端 未结 1 644
别跟我提以往
别跟我提以往 2021-01-19 00:28

I have scoured GoogleCode, GWT ShowCase, GWT Developer Notes, and Google Groups for some inkling as to how to get/set values of a CompositeCell. There is no one definitive

相关标签:
1条回答
  • 2021-01-19 00:44

    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.

    0 讨论(0)
提交回复
热议问题