/** * @since 1.2 */ public void resetValue() { super.resetValue(); setSubmittedValue(null); setLocalValueSet(false); setValid(true); }
private void resetValues(final UIComponent component) { if (component == null) { return; } for (UIComponent child : component.getChildren()) { resetValues(child); } if (component instanceof UIOutput) { ((UIOutput) component).resetValue(); } else if (component instanceof EditableValueHolder) { ((EditableValueHolder) component).resetValue(); } }
private void resetValues(final UIComponent component) { if (component == null) { return; } for (UIComponent child : component.getChildren()) { resetValues(child); } if (component instanceof UIOutput) { ((UIOutput) component).resetValue(); } else if (component instanceof EditableValueHolder) { ((EditableValueHolder) component).resetValue(); } }
private void resetValues(final UIComponent component) { if (component == null) { return; } for (UIComponent child : component.getChildren()) { resetValues(child); } if (component instanceof UIOutput) { ((UIOutput) component).resetValue(); } else if (component instanceof EditableValueHolder) { ((EditableValueHolder) component).resetValue(); } }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * <p/> * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * <p/> * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * <p/> * <p>Clear state for property <code>localValueSet</code>.</p> * <p/> * <p>Clear state for property <code>valid</code>.</p> * <p/> * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }
/** * <p><span class="changed_modified_2_2">Convenience</span> method to reset * this component's value to the * un-initialized state. This method does the following:</p> * * <p class="changed_modified_2_2">Call {@link UIOutput#setValue}.</p> * * <p>Call {@link #setSubmittedValue} passing <code>null</code>.</p> * * <p>Clear state for property <code>localValueSet</code>.</p> * * <p>Clear state for property <code>valid</code>.</p> * * <p>Upon return from this call if the instance had a * <code>ValueBinding</code> associated with it for the "value" * property, this binding is evaluated when {@link * UIOutput#getValue} is called. Otherwise, <code>null</code> is * returned from <code>getValue()</code>.</p> */ @Override public void resetValue() { super.resetValue(); this.setSubmittedValue(null); getStateHelper().remove(PropertyKeys.localValueSet); getStateHelper().remove(PropertyKeys.valid); }