我使用了 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
}
再次感谢任何帮助.....