This discussion is archived
4 Replies Latest reply: Mar 26, 2013 10:09 PM by Durairaj RSS

addValueChangeListener() is not working in Rich input Text

Durairaj Newbie
Currently Being Moderated
I am using jdeveloper and Browser is IE 8 .

I added RichinputText programatically as below :

RichInputText inputTxt = new RichInputText();
MethodExpression listener = FacesContext.getCurrentInstance().getApplication().getExpressionFactory()
.createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{pageFlowScope.DetailsBean.valueChangeCode}", null,
new Class[] { ValueChangeEvent.class });
MethodExpressionValueChangeListener valueChangeListener = new MethodExpressionValueChangeListener(listener);
inputTxt .addValueChangeListener(valueChangeListener);
inputTxt .setMaximumLength(10);
inputTxt .setAutoSubmit(Boolean.TRUE);
inputTxt .setDisabled(Boolean.TRUE);

private void valueChangeCode(ValueChangeEvent valueChangeEvent){
String val= null;
if(valueChangeEvent != null){
val= (String)valueChangeEvent.getNewValue();


The value change listener is not being called i.e. not working. Tried in debug mode but this is not fired.

Any help is greatly appreciated.

Edited by: user8739990 on Mar 26, 2013 7:43 AM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points