Package javax.faces.event

Examples of javax.faces.event.ValueChangeEvent


        mockDataAdaptor.getChildren().add(input);
        mockDataAdaptor.setRowKey(facesContext, Integer.valueOf(1));
        assertEquals(data.get(1), getVarValue());

        new ValueChangeEvent(input, null, "testValue").queue();
        mockDataAdaptor.setRowKey(facesContext, null);

        facesContext.getViewRoot().broadcastEvents(facesContext, PhaseId.PROCESS_VALIDATIONS);
        assertEquals(1, testCallback.get());
    }
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

        Object previousValue = getValue();
        setValue(convertedValue);
        setSubmittedValue(null);
        if (compareValues(previousValue, convertedValue))
        {
            queueEvent(new ValueChangeEvent(this, previousValue, convertedValue));
        }
    }
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

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

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

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

        Object previousValue = getValue();
        setValue(convertedValue);
        setSubmittedValue(null);
        if (compareValues(previousValue, convertedValue))
        {
            queueEvent(new ValueChangeEvent(this, previousValue, convertedValue));
        }
    }
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

      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

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

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

      this.submittedValueHolder.setNull();
    }
  }
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.