Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT消息与查找支持接口_Gwt_Binding_Messages_Deferred - Fatal编程技术网

GWT消息与查找支持接口

GWT消息与查找支持接口,gwt,binding,messages,deferred,Gwt,Binding,Messages,Deferred,我正在开发一个新的应用程序,我需要创建一个带有lookup的消息接口,使用键查找值(如ConstantsWithLookup,但能够接收参数)。我一直在研究Dictionary类的功能,但它缺少通过参数定制消息 使用ConstantsWithLookup,我可以进行以下操作: myConstantsWithLookupInterface.getString("key"); 然后得到如下结果: Field must be filled with numbers Field _param1_ m

我正在开发一个新的应用程序,我需要创建一个带有lookup的消息接口,使用键查找值(如ConstantsWithLookup,但能够接收参数)。我一直在研究Dictionary类的功能,但它缺少通过参数定制消息

使用ConstantsWithLookup,我可以进行以下操作:

myConstantsWithLookupInterface.getString("key");
然后得到如下结果:

Field must be filled with numbers
Field _param1_ must be filled with numbers greater than _param2_
但我需要这样做:

myMessagesWithLookupInterface.getString("key", "param1", "param2",...);
然后得到如下结果:

Field must be filled with numbers
Field _param1_ must be filled with numbers greater than _param2_
我不知道该怎么做。

使用:


如果您的数据包含
字段_param1_uuu必须用大于_param2_uuu
的数字填充,则这将用字符串内容
replace1

替换
uu param1
,这需要使用ConstantsWithLookup,而我确实需要消息的额外功能(支持@PluralCount和SafeHtml作为返回类型)。