public String AddProperty() { // props.Add(propname, propvalue); // propname = DataModel.getNormalizedName("", propname); DataModelValidationResult r = DataModelJsfBean.Validate(Parameter.getNormalizedName("", propname), propvalue); if (r.isOk()) { props.Add(new Property(Parameter.getNameWithoutRoot(propname), propvalue)); if (r.getMessage() != null) { setWarningMessage(r.getMessage()); } } else { if (r.getMessage() != null) { setErrorMessage(r.getMessage()); } else { setErrorMessage("Uknown validation error"); } } propname = propvalue = ""; return null; }
public Collection autocompletePropName(Object v) { return DataModelJsfBean.autocompletePropName(v); }