ADF将空值设置为输入字段

时间:2015-05-15 07:01:31

标签: java oracle-adf bpm

我正在尝试将值设置为与af:inputText对应的绑定。 但在验证阶段弹出消息后显示文本:
  错误
 对于输入字符串:""

这里是tr .jspx示例:

...

<af:commandButton text="Запрос" id="cb1"
                                actionListener="#{taskServiceBean.requestArticle}"/>
...

<af:inputText value="#{bindings.periodExpireInit.inputValue}"
                                label="New perion:"
                                required="false"
                                columns="#{bindings.periodExpireInit.hints.displayWidth}"
                                maximumLength="#{bindings.periodExpireInit.hints.precision}"
                                shortDesc="#{bindings.periodExpireInit.hints.tooltip}"
                                id="it2"
                                partialTriggers="cb1">

</af:inputText>
...

Backing bean示例(TaskServiceBean):

public void requestArticle(ActionEvent actionEvent) {
   initFeald();
   clearAll();
   ....
}
private void clearAll() {
   artPeriodExpireInitBinding = (AttributeBinding) bindings.getControlBinding(PropertyHolder.BPM_ART_PERIOD_EXPIRE_INIT_BINDING);
   artPeriodExpireInitBinding.setInputValue(null);
}

periodExpireInit 是bpm进程中的int变量,通过humman task /

以adf形式传递

0 个答案:

没有答案