You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/08/13 21:27:20 UTC

DO NOT REPLY [Bug 30657] New: - ognl expression eval does not set #this properly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30657>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30657

ognl expression eval does not set #this properly

           Summary: ognl expression eval does not set #this properly
           Product: Tapestry
           Version: 3.0
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Framework
        AssignedTo: tapestry-dev@jakarta.apache.org
        ReportedBy: ben@jetpen.com


The OGNL documentation in chapter 4 states:

OGNL also stores the current object at every point in the evaluation of an 
expression in the this variable, where it can be referred to like any other 
variable. For example, the following expression operates on the number of 
listeners, returning twice the number if it is more than 100, or 20 more than 
the number otherwise: listeners.size().(#this > 100? 2*#this : 20+#this)

I have an expression like this <span jwcid="@Insert" 
value="ognl:currentMatch.creator.(#this != null ? #this.name : 
null)">ben</span>

When evaluated, #this seems to point to the current page, not the 
currentMatch.creator.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org