Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ui:msgを辞書またはGWTのカスタムHashMapで使用することは可能ですか?もしそうなら、どのように?
ありがとうA
それが可能かどうかはわかりませんが、できることは POJO を使用することです。
お気に入り:
<ui:with type="org.mypackage.MyMessages" field="messages" /> <g:Label text="{messages.hello}" />
MyMessages は、文字列を返すメソッド getHello() を含むクラスです。したがって、クラス MyMessages 内に辞書をラップします