Re: Problem with OGNL in FieldExpressionValidator

2011-04-30 Thread Greg Akins
Setting up a test app and trying to verify. I suspect I'm doing something wrong elsewhere. My test app has expression=("#session.isSet) where session.put("isSet", true) is called in the index.action And everything seems to work as expected. I probably just needed a good night's sleep.. Thanks

Re: Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Dave Newton
On Fri, Apr 29, 2011 at 9:01 PM, Greg Akins wrote: >  In this case, the session has the right value when the setter is > executed, but the OGNL expression #session.birthYearEnabled is null > (or seem to be null) Just as a sanity check, birthYearEnabled (above) and birthYearDisplayed (original pos

Re: Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Greg Akins
On Fri, Apr 29, 2011 at 7:23 PM, Okan Özeren wrote: > > Hi, > > I didn't read all of these, but maybe there are some usefull tips in this > article: > http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html Not quite.  Thanks though. That article is mostly about the Expres

Re: Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Okan Özeren
Hi, I didn't read all of these, but maybe there are some usefull tips in this article: http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html Okan Özeren. On Fri, Apr 29, 2011 at 9:40 PM, Greg Akins wrote: > Can anyone help me understand how to use OGNL to capture session d

Problem with OGNL in FieldExpressionValidator

2011-04-29 Thread Greg Akins
Can anyone help me understand how to use OGNL to capture session data in this annotation? I'm trying to use FieldExpressionValidator The Annotation has this [expression = "!birthYearDisplayed || !birthYear.equals('')"] birthYearDisplayed is on the session and set to true When I execute the cod