【发布时间】:2009-04-29 12:39:58
【问题描述】:
我使用了 icefaces 1.7.1,我使用 ice:inputText 和 valueChangeListener 类似:
<ice:inputText value="#{myBean.name}" valueChangeListener="#{myBean.nameChangedListener}"/>
在 MyBean.java 我有:
public void nameChangedListener(ValueChangeEvent event){
// test the new value : if it's ok continue but if it is not ok i need it to keep the old value.
// I know that the valueChangeListener invoked before the old value is replaced by the newValue, is it ok?, and if ok : what to do to keep the oldValue if the newValue is worng
}
再次感谢您的帮助.....
【问题讨论】: