0 Replies Latest reply on Jan 31, 2012 5:03 AM by capitano666

    HtmlCalendar.addValueChangeListener

    capitano666

      Hello, I'm using the following code to add change listener support to a Calendar

       

       

      HtmlAjaxSupport rerender = new HtmlAjaxSupport();
      rerender.setAjaxSingle(true);
      rerender.setEvent("onblur");
      rerender.setReRender(data.getId() + ", save_new, save_update");
      rerender.setId(data.getId() + "_updater");
      rerender.setOncomplete(script);  //Javascript
      data.getFacets().put("a4jsupport", rerender);
      
      data.addValueChangeListener(new MethodExpressionValueChangeListener(FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{" + BeanNames.REFERENCE_DATA_MANAGER_BEAN + ".onValueChange}", null, new Class[] { ValueChangeEvent.class })));
      

       

      I'm using the same code for HtmlSelectOneMenu and HtmlInputText elements and it's working fine, but with HtmlCalendar it just won't call the onValueChange method on my bean

      I tried setting the event to "change", "onchange", "onchanged" but it still didn't work.

       

      Halp!