public TypedValue resolve(String variableName) { return variableScope.getVariableTyped(variableName); }
public TypedValue resolve(String variableName) { return variableScope.getVariableTyped(variableName); }
public Object getSource(VariableScope variableScope) { if (sourceValueProvider instanceof ConstantValueProvider) { String variableName = (String) sourceValueProvider.getValue(variableScope); return variableScope.getVariableTyped(variableName); } else { return sourceValueProvider.getValue(variableScope); } }
public Object getSource(VariableScope variableScope) { if (sourceValueProvider instanceof ConstantValueProvider) { String variableName = (String) sourceValueProvider.getValue(variableScope); return variableScope.getVariableTyped(variableName); } else { return sourceValueProvider.getValue(variableScope); } }
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext) { if(submittedValue == null) { TypedValue value = validatorContext.getVariableScope().getVariableTyped(validatorContext.getFormFieldHandler().getId()); return (value != null && value.getValue() != null); } else { if (submittedValue instanceof String) { return submittedValue != null && !((String)submittedValue).isEmpty(); } else { return submittedValue != null; } } }
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext) { if(submittedValue == null) { TypedValue value = validatorContext.getVariableScope().getVariableTyped(validatorContext.getFormFieldHandler().getId()); return (value != null && value.getValue() != null); } else { if (submittedValue instanceof String) { return submittedValue != null && !((String)submittedValue).isEmpty(); } else { return submittedValue != null; } } }
public TypedValue resolve(String variableName) { return variableScope.getVariableTyped(variableName); }
TypedValue value = variableScope.getVariableTyped(id); if(value != null) { formField.setValue(type.convertToFormValue(value));
TypedValue value = variableScope.getVariableTyped(id); if(value != null) { formField.setValue(type.convertToFormValue(value));
public Object getSource(VariableScope variableScope) { if (sourceValueProvider instanceof ConstantValueProvider) { String variableName = (String) sourceValueProvider.getValue(variableScope); return variableScope.getVariableTyped(variableName); } else { return sourceValueProvider.getValue(variableScope); } }
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext) { if(submittedValue == null) { TypedValue value = validatorContext.getVariableScope().getVariableTyped(validatorContext.getFormFieldHandler().getId()); return (value != null && value.getValue() != null); } else { if (submittedValue instanceof String) { return submittedValue != null && !((String)submittedValue).isEmpty(); } else { return submittedValue != null; } } }
TypedValue value = variableScope.getVariableTyped(id); if(value != null) { formField.setValue(type.convertToFormValue(value));