Nope, you can't... T4 used OGNL where you could, but T5 is pretty much just calls bean properties. See here:
http://tapestry.apache.org/tapestry5.2-dev/guide/propexp.html But this is a good thing, for it stops you from putting logic and programming in your template. So what you can do is: < t:if test="user.hasIdOf(99)"> and have a method on User: public boolean IsHasIsOf(int is) { return this.id == id; } If you don't like polluting your entities with T5 methods (esp if they're only used the once) then you could stick them on your page / component class where they're used. Steve. -- Steve Eynon On 5 August 2010 11:26, Angelo Chen <angelochen...@yahoo.com.hk> wrote: > > Hi, > is it possible to use an expression in the t:if? something like this > > < t:if test="user.id=99"> > < /t:if> > > ? > -- > View this message in context: > http://old.nabble.com/t5%3A-if-and-expression-tp29355495p29355495.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org