public Object invoke() { getNotNullValueBinding().setValue(getFacesContext(context), value); return null; } });
public Object invoke() { getNotNullValueBinding().setValue(getFacesContext(context), value); return null; } });
public Object invoke() { getNotNullValueBinding().setValue(getFacesContext(context), value); return null; } });
@Override public void processAction(ActionEvent evt) throws AbortProcessingException { FacesContext faces = FacesContext.getCurrentInstance(); Object valueObj = this.value.getValue(faces); this.target.setValue(faces, valueObj); }
@Override public void processAction(ActionEvent evt) throws AbortProcessingException { FacesContext faces = FacesContext.getCurrentInstance(); Object valueObj = this.value.getValue(faces); this.target.setValue(faces, valueObj); }
private boolean updateValueBoundObject(FacesContext context, String valueBinding, String value) { try { ValueBinding vb = context.getApplication().createValueBinding(valueBinding); vb.setValue(context, value); } catch (EvaluationException ex) { return false; } return true; }
public void processAction(ActionEvent evt) throws AbortProcessingException { FacesContext faces = FacesContext.getCurrentInstance(); Object valueObj = this.value.getValue(faces); this.target.setValue(faces, valueObj); }
public void processAction(ActionEvent evt) throws AbortProcessingException { FacesContext faces = FacesContext.getCurrentInstance(); Object valueObj = this.value.getValue(faces); this.target.setValue(faces, valueObj); }
/** * Clears the value of the variable. * Useful for cleaning up e.g. a session or application variable * to save memory without the knowledge of the scope. * Also useful to enforce a new creation of a managed-bean. */ public static void clearVariable(final FacesContext context, final String variable) { final Application application = context.getApplication(); final ValueBinding valueBinding = application.createValueBinding("#{" + variable + "}"); valueBinding.setValue(context, null); } }
public void restoreState(FacesContext context, Object state) { if (log.isDebugEnabled()) log.debug("restoreState " + state); Object values[] = (Object[])state; super.restoreState(context, values[0]); PhaseAware bean = (PhaseAware)values[1]; ValueBinding vb = getValueBinding("bean"); if (vb != null) { vb.setValue(context, bean); } }
public void restoreState(FacesContext context, Object state) { if (log.isDebugEnabled()) log.debug("restoreState " + state); Object values[] = (Object[])state; super.restoreState(context, values[0]); PhaseAware bean = (PhaseAware)values[1]; ValueBinding vb = getValueBinding("bean"); if (vb != null) { vb.setValue(context, bean); } }
/** * <p>Set the value of the <code>sortAscending</code> property.</p> */ public void setSortAscending(boolean sortAscending) { this.sortAscending = new Boolean(sortAscending); ValueBinding vb = getValueBinding("sortAscending"); if (vb != null) { vb.setValue(getFacesContext(), this.sortAscending); this.sortAscending = null; } }
/** * <p>Set the value of the <code>disabled</code> property.</p> */ public void setDisabled(boolean disabled) { this.disabled = new Boolean(disabled); ValueBinding vb = getValueBinding("disabled"); if (vb != null) { vb.setValue(getFacesContext(), this.disabled); this.disabled = null; } }
public void setSortAscending(boolean sortAscending) { _sortAscending = Boolean.valueOf(sortAscending); // update model is necessary here, because processUpdates is never called // reason: HtmlCommandSortHeader.isImmediate() == true ValueBinding vb = getValueBinding("sortAscending"); if (vb != null) { vb.setValue(getFacesContext(), _sortAscending); _sortAscending = null; } }
public void setSubmit(Boolean submit) { ValueBinding vb = getValueBinding("submit"); if (vb != null) { vb.setValue(getFacesContext(), submit); } else { this.submit= submit; } } public Boolean getAutoReset() {
public void setOptions(String options) { ValueBinding vb = getValueBinding("options"); if (vb != null) { vb.setValue(getFacesContext(), options); } else { this.options = options; } }
public void setSequenceNumber(Integer sequenceNumber) { ValueBinding vb = getValueBinding("sequenceNumber"); if (vb != null) { vb.setValue(getFacesContext(), sequenceNumber); } else { this.sequenceNumber = sequenceNumber; } }
public void setClickedRow(Integer clickedRow) { ValueBinding vb = getValueBinding("clickedRow"); if (vb != null) { vb.setValue(getFacesContext(), clickedRow); } else { this.clickedRow = clickedRow; } }
public void setTransitory(Boolean transitory) { ValueBinding vb = getValueBinding("transitory"); if (vb != null) { vb.setValue(getFacesContext(), transitory); } else { this.transitory= transitory; } }
/** * <p>Set the value of the <code>sortColumn</code> property.</p> */ public void setSortColumn(String sortColumn) { this.sortColumn = sortColumn; ValueBinding vb = getValueBinding("sortColumn"); if (vb != null) { vb.setValue(getFacesContext(), this.sortColumn); this.sortColumn = null; } }