On Tue, Feb 10, 2009 at 9:14 AM, Angelo Chen <angelochen...@yahoo.com.hk> wrote:

> <t:if test= 'currentPage.count > 0'>

With the prop binding (the default), you can't use any expression like
that, just properties.
There are two ways to do what you want:

1) Create a getter in your page class (that's what I'd do):
public boolean isHasPages() {
    return pageCount > 200;
}

<t:if test= 'hasPages'>...</t:if>

2) Use the OGNL biding from
http://www.chenillekit.org/chenillekit-tapestry/ognlbinding.html.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to