0
我試圖設置空列表消息一CellList
:GWT:設置爲emptyListMessage CellList
<c:CellList ui:field="membersList">
<emptyListMessage>
<g:Label text="No members found" />
</emptyListMessage>
</c:CellList>
這失敗,出現錯誤:
[ERROR] Found unexpected child element Element <emptyListMessage>
我也試過:
<c:CellList ui:field="membersList" emptyListMessage="No members found" />
失敗並顯示錯誤:
[ERROR] Cannot parse value: "No members found" as type SafeHtml
什麼是正確的方法來做到這一點?