我是UiBinder的新手,我嘗試使用FieldLabel。GXT UiBinder FieldLabel
我發現這個職位:GXT: UiBinder new instance of a Widget
在開發者使用這些標記
<form:FieldLabel text="Text">
<form:Widget>
<form:TextField ui:field="text"/>
</form:Widget>
</form:FieldLabel>
當我做同樣的,我收到以下錯誤:
ERROR: Illegal child <form:Widget> in a text-only context. Perhaps you are trying to use unescaped HTML where text is required, as in a HasText widget?: <form:FieldLabel text='Text'> (:7)
看來,我的GXT版本(3.0.1)不允許爲FieldLabel標記生成非純文本的孩子。
到現在爲止,我發現包括FieldLabel聯合唯一的解決辦法是使用
@UiField(provided = true)
是否有使用FieldLabel聯合與UiBinder的更好的辦法?
非常明確的解釋,謝謝:) – user2147970