Package javax.faces.event

Examples of javax.faces.event.MethodExpressionValueChangeListener


        {
            comp.setValueExpression("validatorMessage", _validatorMessage);
        }
        if (_valueChangeListener != null)
        {
            comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
        }
        if (_value != null)
        {
            comp.setValueExpression("value", _value);
        }
View Full Code Here


                        + component.getClientId(context)
                        + " is no EditableValueHolder");
            }

            ((EditableValueHolder) component)
                    .addValueChangeListener(new MethodExpressionValueChangeListener(
                            valueChangedListener));
        }
    }
View Full Code Here

                                        {
                                            valueChangeListener = new PartialMethodExpressionValueChangeListener(methodExpression, methodExpression2);
                                        }
                                        else
                                        {
                                            valueChangeListener = new MethodExpressionValueChangeListener(methodExpression, methodExpression2);
                                        }
                                    }
                                    ((EditableValueHolder) innerComponent).addValueChangeListener(valueChangeListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, valueChangeListener);
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
View Full Code Here

 
  protected void setValueChangeListenerProperty(UIComponent component, MethodExpression valueChangeListener) {
    if (valueChangeListener != null) {
      if (component instanceof EditableValueHolder) {
        EditableValueHolder input = (EditableValueHolder) component;
        input.addValueChangeListener(new MethodExpressionValueChangeListener(valueChangeListener));
      } else {
              throw new IllegalArgumentException(Messages.getMessage(Messages.NO_EDITABLE_VALUE_HOLDER_ERROR, component.getId()));
      }
    }
  }
View Full Code Here

                valueChangeListener = new PartialMethodExpressionValueChangeListener(
                        methodExpression, methodExpression2);
            }
            else
            {
                valueChangeListener = new MethodExpressionValueChangeListener(methodExpression, methodExpression2);
            }
        }
        ((EditableValueHolder) innerComponent).addValueChangeListener(valueChangeListener);
        mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, valueChangeListener);
    }
View Full Code Here

                                        methodExpression2 = reWrapMethodExpression(context.getApplication().getExpressionFactory().
                                                createMethodExpression(elContext,
                                                        attributeExpressionString, Void.TYPE,
                                                        EMPTY_CLASS_ARRAY), attributeNameValueExpression);
           
                                        valueChangeListener = new MethodExpressionValueChangeListener(methodExpression, methodExpression2);
                                    }
                                    ((EditableValueHolder)innerComponent).addValueChangeListener( valueChangeListener );
                                    mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, valueChangeListener);
                                }
                            }
View Full Code Here

                                                                  ve.getExpressionString(),
                                                                  Void.TYPE,
                                                                  NO_ARGS);

                ((EditableValueHolder) target).addValueChangeListener(
                      new MethodExpressionValueChangeListener(
                            new ContextualCompositeMethodExpression(ve,
                                                                    me),
                            new ContextualCompositeMethodExpression(ve,
                                                                    noArg)));
View Full Code Here

                valueChangeListener = new PartialMethodExpressionValueChangeListener(
                        methodExpression, methodExpression2);
            }
            else
            {
                valueChangeListener = new MethodExpressionValueChangeListener(methodExpression, methodExpression2);
            }
        }
        ((EditableValueHolder) innerComponent).addValueChangeListener(valueChangeListener);
        mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, valueChangeListener);
    }
View Full Code Here

            && Attributes.VALUE_CHANGE_LISTENER.equals(nameValue)) {
          final MethodExpression methodExpression =
              getMethodExpression(faceletContext, null, ComponentUtils.VALUE_CHANGE_LISTENER_ARGS);
          if (methodExpression != null) {
            ((EditableValueHolder) parent).addValueChangeListener(
                new MethodExpressionValueChangeListener(methodExpression));
          }
        } else if (parent instanceof ValueHolder && Attributes.CONVERTER.equals(nameValue)) {
          setConverter(faceletContext, parent, nameValue);
        } else if (parent instanceof ActionSource && Attributes.ACTION.equals(nameValue)) {
          final MethodExpression action = getMethodExpression(faceletContext, String.class, ComponentUtils.ACTION_ARGS);
View Full Code Here

 
  protected void setValueChangeListenerProperty(UIComponent component, MethodExpression valueChangeListener) {
    if (valueChangeListener != null) {
      if (component instanceof EditableValueHolder) {
        EditableValueHolder input = (EditableValueHolder) component;
        input.addValueChangeListener(new MethodExpressionValueChangeListener(valueChangeListener));
      } else {
              throw new IllegalArgumentException(Messages.getMessage(Messages.NO_EDITABLE_VALUE_HOLDER_ERROR, component.getId()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of javax.faces.event.MethodExpressionValueChangeListener

Copyright © 2018 www.massapicom. 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.