开发者

GWT: Setting emptyListMessage for CellList

开发者 https://www.devze.com 2023-03-28 14:39 出处:网络
I\'m trying to set the empty list message for a CellList: <c:CellList ui:field=\"membersList\"> <emptyListMessage>

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

精彩评论

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

关注公众号