我正在使用textfield' senderReceiverName'的自动填充组件。当它被填充时,关于模糊的动作我想填写发送者地址'
所以问题是,当我输入Textfield' senderReceiverName'西里尔字符request.getParameter(" param");正在返回数字,因为拉丁字符工作正常。
这是.tml
<t:Zone t:id="srZone5" id="srZone5">
<t:TextField t:id="senderReceiverName" t:value="currentDoc?.senderReceiverName"
t:validate="required" t:mixins="autocomplete,ZoneUpdater" t:disabled="${editable}" t:clientEvent="blur" t:event="senderReceiverChanged"
style="width:500px;" t:zone="srZone10" />
</t:Zone>
<t:Zone t:id="srZone10" id="srZone10">
<t:TextArea t:id="senderReceiverAddress"
t:value="currentDoc?.senderReceiverAddress" t:disabled="true"
style="width:500px;" />
</t:Zone>
这是java类
@Inject
private Request request;
public void onSenderReceiverChanged() {
String senderNameValue = request.getParameter("param");
Map<String, String> map = senderReceivers.getMap();
if (map.get(senderNameValue) != null){
currentDoc.setSenderReceiverAddress(map.get(senderNameValue));
ajaxResponseRenderer.addRender(srZone10);
}
}
提前谢谢
类似的问题:
cirylic text in tapestry grid