More cleanups of now deprecated constructors and what what

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2008-05-28 07:16:36 +00:00
parent fbc52e02dc
commit 82df3529e2
21 changed files with 123 additions and 123 deletions
@@ -32,13 +32,13 @@ delegator = request.getAttribute("delegator");
andExprs = FastList.newInstance();
fieldValue = request.getParameter("exampleFeatureId");
if (UtilValidate.isNotEmpty(fieldValue)) {
andExprs.add(new EntityExpr(new EntityFunction.UPPER(new EntityFieldValue("exampleFeatureId")),
andExprs.add(EntityCondition.makeCondition(EntityFunction.UPPER(EntityFieldValue.makeFieldValue("exampleFeatureId")),
EntityOperator.LIKE, "%" + fieldValue.toUpperCase() + "%"));
}
List autocompleteOptions = null;
if (andExprs.size() > 0) {
entityConditionList = new EntityConditionList(andExprs, EntityOperator.AND);
entityConditionList = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
autocompleteOptions = delegator.findList("ExampleFeature", entityConditionList, new TreeSet(UtilMisc.toList("exampleFeatureId", "description")), UtilMisc.toList("-exampleFeatureId"), null, false);
//context.put("autocompleteOptions", autocompleteOptions);
request.setAttribute("autocompleteOptions", autocompleteOptions);