tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Resolved: (TAPESTRY-207) ognl expression eval does not set #this properly
Date Tue, 08 Feb 2005 20:00:13 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-207?page=history ]
Howard M. Lewis Ship resolved TAPESTRY-207:

     Assign To:     (was: Tapestry Developer List)
    Resolution: Invalid

Drew has indicated that this is an OGNL issue.

> ognl expression eval does not set #this properly
> ------------------------------------------------
>          Key: TAPESTRY-207
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-207
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 3.0
>  Environment: Operating System: Other
> Platform: All
>     Reporter: Ben Eng

> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

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

View raw message