开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜