GWT: Setting emptyListMessage for CellList
I'm trying to set the empty list message for a CellList
:
<c:CellList ui:field="membersList">
<emptyListMessage>
<g:Label text="No members found" />
</emptyListMessage>
</c:CellList>
This fails with the error:
[ERROR] Found unexpected child element Element <emptyListMessage>
I also tried:
<c:CellList ui:field="membersList" emptyListMessage="No members found" />
which fails with the error:
[ERROR] Cannot parse value: "No members found" as type S开发者_高级运维afeHtml
What is the right way to do this?
As CellList.setEmptyListMessage expects a SafeHtml string you cant use it this way in the uibinder xml. Just set it in your ViewImpl class.
精彩评论