Package javax.faces.event

Examples of javax.faces.event.ValueChangeEvent


            Object previousValue = getValue();
            setValue(convertedValue);
            setSubmittedValue(null);
            if (compareValues(previousValue, convertedValue))
            {
                queueEvent(new ValueChangeEvent(this, previousValue, convertedValue));
            }
        }
        catch (Exception ex)
        {
            throw new FacesException("Exception while validating component with path : "
View Full Code Here


        text1.pushComponentToEL(facesContext, text1);
        text1.getValidators()[0].validate(facesContext, text1, "");
        text1.popComponentFromEL(facesContext);

        text2.pushComponentToEL(facesContext, text2);
        text2.getValueChangeListeners()[0].processValueChange(new ValueChangeEvent(text2, "old", "new"));
        text2.popComponentFromEL(facesContext);

        form.popComponentFromEL(facesContext);
        facet2.popComponentFromEL(facesContext);
        compositeComponent2.popComponentFromEL(facesContext);
View Full Code Here

      Object previous = getValue();
      setSubmittedValue(null);
      if (compareValues(previous, newValue))
      {
        setValue(newValue);
        queueEvent(new ValueChangeEvent(this, previous, newValue));
      }
    }
  }
View Full Code Here

      // event.
      Date newValue = calendar.getTime();
      if (!calendar.getTime().equals(oldValue))
      {
        setValue(newValue);
        queueEvent(new ValueChangeEvent(this, oldValue, newValue));
      }
    }
  }
View Full Code Here

       
        Object oldValue = getValue();
        if ((oldValue == null && newValue != null) ||
          (oldValue != null && !oldValue.equals(newValue))) {
 
          queueEvent(new ValueChangeEvent(this, oldValue, newValue));
        }
       
        //TODO UIInput should update the model, not the switchable panel itself
        ValueExpression valueBinding = getValueExpression("value");
        if (valueBinding != null) {
View Full Code Here

      setSourceValue(newSourceValue);
      setTargetValue(newTargetValue);

      if (compareValues(previousSource, newSourceValue) || compareValues(previousTarget, newTargetValue)) {
        queueEvent(new ValueChangeEvent(this,
            new Object[]{previousSource,previousTarget},
            new Object[]{newSourceValue, newTargetValue}));
      }

      this.submittedValueHolder.setNull();
View Full Code Here

        } else {
          Date currentDate1 = dateChangeEvent.getCurrentDate();
          Date currentDate2 = getAsDate(getCurrentDate());
          if (!currentDate1.equals(currentDate2)) {
            updateCurrentDate(facesContext, currentDate1);
            ValueChangeEvent changeEvent = new ValueChangeEvent(
                this, currentDate2, currentDate1);
            changeEvent.queue();

          }

        }
      } else {
View Full Code Here

      setActiveItem(submittedValueHolder.activeItem);
     
      setValue(newValue);

      if (compareValues(previousValue, newValue)) {
        queueEvent(new ValueChangeEvent(this, previousValue, newValue));
      }

      this.submittedValueHolder.setNull();
    }
  }
View Full Code Here

       
        Object oldValue = getValue();
        if (oldValue == null && newValue != null ||
            oldValue != null && !oldValue.equals(newValue)) {
 
          queueEvent(new ValueChangeEvent(this, oldValue, newValue));
        }
       
        ValueBinding valueBinding = getValueBinding("value");
        if (valueBinding != null) {
          valueBinding.setValue(facesContext, newValue);
View Full Code Here

        if (isValid()) {
            Object previous = getValue();
            setValue(newValue);
            setSubmittedValue(null);
            if (compareValues(previous, newValue)) {
                queueEvent(new ValueChangeEvent(this, previous, newValue));
            }
        }

    }
View Full Code Here

TOP

Related Classes of javax.faces.event.ValueChangeEvent

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.