Re: T5.1 If/Conditional against a method?

2009-08-13 Thread Michael Gentry
Thanks Thiago/Robert! Both of your suggestions worked (although I had to change the method to public instead of protected for both). I didn't try Norman's (although I'm sure OGNL would be fine) because I'm not using CK (at least not yet). mrg On Thu, Aug 13, 2009 at 1:02 PM, Robert Zeigler wro

Re: T5.1 If/Conditional against a method?

2009-08-13 Thread Robert Zeigler
If you want the method to be showFoo(), then you need to do test="showFoo()". But you can use test="showFoo" if showFoo() is renamed to isShowFoo, iff you change the accessor to public (from protected). That is, for property access, tapestry is following java beans conventions, and a property

Re: T5.1 If/Conditional against a method?

2009-08-13 Thread Norman Franke
On Aug 13, 2009, at 12:47 PM, Thiago H. de Paula Figueiredo wrote: Em Thu, 13 Aug 2009 13:34:01 -0300, Michael Gentry > escreveu: Hi all, Hi! ... Try Notice the parenthesis. Without them, Tapestry looks for get or is methods. -- Thiago H. de Paula Figueiredo Independent Java con

Re: T5.1 If/Conditional against a method?

2009-08-13 Thread Thiago H. de Paula Figueiredo
Em Thu, 13 Aug 2009 13:34:01 -0300, Michael Gentry escreveu: Hi all, Hi! ... Try Notice the parenthesis. Without them, Tapestry looks for get or is methods. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thia

T5.1 If/Conditional against a method?

2009-08-13 Thread Michael Gentry
Hi all, I've been searching the documentation/examples/list all morning, but can't find an answer to this so far. Can T5.1 do a conditional against a method instead of a variable (property)? I have something like: ... For the Java, I have tried numerous varieties of: protected boolean showFoo