private QueryParameter copy(QueryParameter queryParameter) { QueryParameter result = new QueryParameter(); result.setExpression(queryParameter.getExpression()); result.setName(queryParameter.getName()); result.setOnError(queryParameter.getOnError()); result.setOnPostback(queryParameter.isOnPostback()); result.setValidatorExpression(queryParameter.getValidatorExpression()); result.setValidatorIds(queryParameter.getValidatorIds()); return result; }
public List<String> getValidatorIdList() { List<String> result = new ArrayList<String>(); if (hasValidators()) { String[] ids = validatorIds.split(" "); Collections.addAll(result, ids); } return result; }
QueryParameter currentParameter = new QueryParameter(); String currentValidatorId = ""; try if (param.hasValidators() || (param.getValidatorExpression() != null)) String name = param.getName(); String el = param.getExpression().getELExpression(); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue() + "] on mappingId [" + mapping.getId() + "] to type [" + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
QueryParameter queryParam = new QueryParameter(); queryParam.setName(queryParamSpec.getName()); queryParam.setOnError(queryParamSpec.getOnError()); queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " ")); queryParam.setOnPostback(queryParamSpec.isOnPostback()); queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator())); queryParam.setExpression(expression); log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: " + mapping.getId());
String name = injection.getName(); expression = injection.getExpression().getELExpression(); value = elUtils.getValue(context, expression); for (Object temp : values) queryParameterValues.add(new QueryParameter(name, temp.toString())); queryParameterValues.add(new QueryParameter(name, value.toString()));
if (!param.isOnPostback() && isPostback) String el = param.getExpression().getELExpression(); if ((el != null) && !"".equals(el.trim())) String name = param.getName(); if (queryString.getParameterMap().containsKey(name))
param.setName(q.getName()); ValueExpression ve = elUtils.createValueExpression(context, q.getExpression().getELExpression()); param.setValueExpression("value", ve); param.setImmediate(true);
queryParams.add(new QueryParameter(name, tempValue)); queryParams.add(new QueryParameter(name, null));
QueryParameter currentParameter = new QueryParameter(); String currentValidatorId = ""; try if (param.hasValidators() || (param.getValidatorExpression() != null)) String name = param.getName(); String el = param.getExpression().getELExpression(); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue() + "] on mappingId [" + mapping.getId() + "] to type [" + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
QueryParameter queryParam = new QueryParameter(); queryParam.setName(queryParamSpec.getName()); queryParam.setOnError(queryParamSpec.getOnError()); queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " ")); queryParam.setOnPostback(queryParamSpec.isOnPostback()); queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator())); queryParam.setExpression(expression); log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: " + mapping.getId());
String name = injection.getName(); expression = injection.getExpression().getELExpression(); value = elUtils.getValue(context, expression); for (Object temp : values) queryParameterValues.add(new QueryParameter(name, temp.toString())); queryParameterValues.add(new QueryParameter(name, value.toString()));
if (!param.isOnPostback() && isPostback) String el = param.getExpression().getELExpression(); if ((el != null) && !"".equals(el.trim())) String name = param.getName(); if (queryString.getParameterMap().containsKey(name))
queryParams.add(new QueryParameter(name, tempValue)); queryParams.add(new QueryParameter(name, null));
private QueryParameter copy(QueryParameter queryParameter) { QueryParameter result = new QueryParameter(); result.setExpression(queryParameter.getExpression()); result.setName(queryParameter.getName()); result.setOnError(queryParameter.getOnError()); result.setOnPostback(queryParameter.isOnPostback()); result.setValidatorExpression(queryParameter.getValidatorExpression()); result.setValidatorIds(queryParameter.getValidatorIds()); return result; }
QueryParameter currentParameter = new QueryParameter(); String currentValidatorId = ""; try if (param.hasValidators() || (param.getValidatorExpression() != null)) String name = param.getName(); String el = param.getExpression().getELExpression(); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); for (String id : param.getValidatorIdList()) if (param.getValidatorExpression() != null) elUtils.invokeMethod(context, param.getValidatorExpression().getELExpression(), new Class<?>[] { FacesContext.class, UIComponent.class, Object.class }, new Object[] { context, new NullComponent(), coerced }); FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue() + "] on mappingId [" + mapping.getId() + "] to type [" + elUtils.getExpectedType(context, currentParameter.getExpression().getELExpression()) + "]"); handleValidationFailure(context, message, currentParameter.getOnError());
QueryParameter queryParam = new QueryParameter(); queryParam.setName(queryParamSpec.getName()); queryParam.setOnError(queryParamSpec.getOnError()); queryParam.setValidatorIds(join(queryParamSpec.getValidatorIds(), " ")); queryParam.setOnPostback(queryParamSpec.isOnPostback()); queryParam.setValidatorExpression(new ConstantExpression(queryParamSpec.getValidator())); queryParam.setExpression(expression); log.trace("Registered query-param '" + queryParam.getName() + "' to '" + expression + "' in mapping: " + mapping.getId());
String name = injection.getName(); expression = injection.getExpression().getELExpression(); value = elUtils.getValue(context, expression); for (Object temp : values) queryParameterValues.add(new QueryParameter(name, temp.toString())); queryParameterValues.add(new QueryParameter(name, value.toString()));
if (!param.isOnPostback() && isPostback) String el = param.getExpression().getELExpression(); if ((el != null) && !"".equals(el.trim())) String name = param.getName(); if (queryString.getParameterMap().containsKey(name))
public List<String> getValidatorIdList() { List<String> result = new ArrayList<String>(); if (hasValidators()) { String[] ids = validatorIds.split(" "); Collections.addAll(result, ids); } return result; }
queryParams.add(new QueryParameter(name, tempValue)); queryParams.add(new QueryParameter(name, null));