我在 djextListTextBox 的更改事件后刷新依赖控件时遇到问题。
这是一个代码片段:
...
<xe:djextListTextBox id="reinsuranceIdentifier"
value="#{offerAccount.reinsuranceIdentifier}" multipleSeparator=","
multipleTrim="true" displayLabel="true">
<xp:eventHandler event="onChange" submit="false">
<xp:this.script><![CDATA[alert("reinsuranceIdentifier - onChange");
XSP.partialRefreshGet("#{id:computedField1}", {});]]></xp:this.script>
</xp:eventHandler>
</xe:djextListTextBox>
...
<xe:valuePicker id="valuePickerReinsuranceIdentifier"
for="reinsuranceIdentifier" dialogTitle="Reinsurance"
pickerIcon="/dropdown_16x16.gif">
<xe:this.dataProvider>
<xe:simpleValuePicker labelSeparator="|">
<xe:this.valueList><![CDATA[#{javascript:var key = "Reinsurance_" + sessionScope.language;
return getMultiParams(key, 4, true, true);}]]></xe:this.valueList>
</xe:simpleValuePicker>
</xe:this.dataProvider>
</xe:valuePicker>
...
<xp:text escape="true" id="computedField1">
<xp:this.value><![CDATA[#{javascript:return "v: " + getComponent("reinsuranceIdentifier").getValue() + " -" + offerAccount.getItemValue("reinsuranceIdentifier") + " -" + offerAccount.getItemValue("reinsuranceIdentifier").get(0);}]]></xp:this.value>
</xp:text>
...
刷新后计算域显示如下值: v: -[] -
表示“reinsuranceIdentifier”listTextBox的组件值和数据源项值都是空的......
怎么了??
我需要根据列表文本框的值更改其他字段,这不可能吗?
谢谢马里奥