4 Replies Latest reply on Mar 27, 2013 5:09 AM by Durairaj

    addValueChangeListener() is not working in Rich input Text

      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