I'm having a weird problem accessing Java constants with Tapestry 3.0.3
and OGNL 2.6.7. Specifically, this bit of template code:
<span jwcid="@Conditional"
condition="ognl:havePrivilege(@[EMAIL PROTECTED])">
works fine after restarting the whole servlet container (Tomcat 4.1.30),
but when I restart just my app, the OGNL expression
"@[EMAIL PROTECTED]" (yes, our package name
is "DataModels.UserModels" -- legacy code and all that) evaluates to
null. I have to restart Tomcat completely in order for this expression
to evaluate correctly. Annoying.
PrivilegeSet is a fairly complex beast, but at its heart it's just a
typesafe enum with a bunch of constant values; here's the relevant
snippet from DataModels/UserModels/PrivilegeSet.java:
"""
package DataModels.UserModels;
[...]
public class PrivilegeSet
{
[...]
public static final Privilege AUDIT_USERS =
Categories.ADMIN.add( "audit_users" );
[...]
}
"""
I just made a quick attempt to reproduce this problem in a trivial
"hello world" tapestry app -- no luck, it works fine.
Before I spend huge amounts of time attempting to reproduce and/or debug
this, I'm wondering if anyone has seen anything similar and knows of a
fix or workaround.
Thanks --
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]