您好我在ui binder中有这段代码:
<ui:with field='resources'
type='com.example.Resources' />
<g:HTMLPanel>
<div class="innercontent">{resources.title}</div>
</g:HTMLPanel>
resources.title
部分不起作用。如何访问名为&#34; resources&#34;设置div的内容?谢谢!
答案 0 :(得分:2)
应该是:
<g:HTMLPanel>
<div class="innercontent"><ui:text from="{resources.title}" /></div>
</g:HTMLPanel>