Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlSelectOneMenu.addValueChangeListener()


  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_valueChangeListener != null)
  {
    comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
  }
  if (_label != null)
  {
    comp.setValueExpression("label", _label);
  }
View Full Code Here


  {
    comp.setValueExpression("onblur", _onblur);
  }
  if (_valueChangeListener != null)
  {
    comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
View Full Code Here

  {
    comp.setValueExpression("onfocus", _onfocus);
  }
  if (_valueChangeListener != null)
  {
    comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
View Full Code Here

  {
    comp.setValueExpression("disabled", _disabled);
  }
  if (_valueChangeListener != null)
  {
    comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
  }
  if (_enabledClass != null)
  {
    comp.setValueExpression("enabledClass", _enabledClass);
  }
View Full Code Here

   
    selectOneMenu.setValueExpression("value", (ValueExpression) Utils.resolveExpression(bindingValue));
   
    // NOTA : cal que hi hagi una classe ValueChangeListener a vo.
    try {
      selectOneMenu.addValueChangeListener( (ValueChangeListener) Class.forName("vo." + classesValueChangeList).newInstance());
    } catch (InstantiationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      // TODO Auto-generated catch block
View Full Code Here

    Class[] parms2 = new Class[]{ValueChangeEvent.class};
        ExpressionFactory ef = FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
        MethodExpression mb = ef.createMethodExpression(FacesContext.getCurrentInstance().getELContext(),
                "#{AutoEvalSerUserConfigBean.processMathExprChange}", null, parms2);
        MethodExpressionValueChangeListener vcl = new MethodExpressionValueChangeListener(mb);
     select2.addValueChangeListener(vcl);
    select2.getChildren().add(items2);
    select2.setImmediate(true);
    
     //place an ajax support on the selectonemenu field
     HtmlAjaxSupport ajaxSupport2 = new HtmlAjaxSupport();
View Full Code Here

          items.setValue(l);
        Class[] parms = new Class[]{ValueChangeEvent.class};
            MethodExpression mb3 = ef.createMethodExpression(FacesContext.getCurrentInstance().getELContext(),
                    "#{AutoEvalSerUserConfigBean.processMetricBoundaryValueChange}", null, parms);
            MethodExpressionValueChangeListener vcl3 = new MethodExpressionValueChangeListener(mb3);
            select.addValueChangeListener(vcl3);
        select.getChildren().add(items);
        select.setImmediate(true);
      
       //place an ajax support on the selectonemenu field
       HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.