[rules-users] Keep getting error trying to access value in hash map.

samd sdoyle_2 at yahoo.com
Fri Apr 10 20:02:14 EDT 2009


I'm trying to extract the value from a hashmap after first extracting a key
and I keep getting the same error.

Here is the rule information:

target: Target();
perm: PermissionCheck(target == target, action == "edit", granted == false);
primaryKey : TargetId(targetNum == 1) from target.codes.keySet();
primaryCode : TargetCode() from target.codes.values[primaryKey];

Here is the error:

Caused by: javax.el.ELException: /layout/test.xhtml @25,111
rendered="#{s:hasPermission(target,'edit')}": org.mvel.CompileException:
unable to resolve property: values
        at
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
        at
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
        ... 61 more
Caused by: org.mvel.CompileException: unable to resolve property: values
        at
org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAcces
sorOptimizer.java:288)
        at
org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAcce
ssorOptimizer.java:109)
        at
org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode
.java:29)

Thanks
-- 
View this message in context: http://www.nabble.com/Keep-getting-error-trying-to-access-value-in-hash-map.-tp22996482p22996482.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list