Dear all,

Could I use OGNL "in operator" (containment operator) in Tapestry?

I'm trying to shorten this expression:
<span jwcid="@If" condition='ognl:(user.securityType == "A" ||
user.securityType == "B")'>

into:
<span jwcid="@If" condition='ognl:user.securityType in {"A","B"}'>

but I got the following error:
HiveMindExpressionCompiler.compileExpression(174) | Error generating
OGNL getter for expression user.securityType in { "A", "B" } with root
[EMAIL PROTECTED] and body:
{ return  ($w) ((($UserActivation_0)$2).ognl.OgnlOps.in( ($w)
(($UserActivation_0)$2).getUser().getSecurityType(), ($w)
java.util.Arrays.asList( new Object[] {  ($w) ("A"),  ($w) ("B")})));}
org.apache.hivemind.ApplicationRuntimeException: Unable to add method
java.lang.Object get(ognl.OgnlContext, java.lang.Object) to class
$ASTIn_11ade9ec0ce: [source error] no such field: ognl
        at
org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278)


Could anyone help me?
Is it possible to use OGNL "in operator" in Tapestry ? 

Thanks in advance,
Yohan





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to