Re: a simple question

2010-11-11 Thread hese
wow! A wealth of information. Thank you all! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3260417.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 09:58:42 -0200, Christian Riedel wrote: public String getReportTitle() :-) Yep, programming my e-mail client (Opera's M@) hasn't Java type checking . . . :D -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, a

Re: a simple question

2010-11-11 Thread Christian Riedel
> public String getReportTitle() :-) Am 11.11.2010 um 12:52 schrieb Thiago H. de Paula Figueiredo: > On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill > wrote: > >> In T5, 5.1 you can do something like this. In .tml: >> >> ${reportTitle} >> ... >> >>No report to display >> >> >> I

Re: a simple question

2010-11-11 Thread Richard Hill
Excellent tips Thiago, cheers. -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tapestry users Subject: Re: a simple question Date: Thu, 11 Nov 2010 09:52:01 -0200 On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: > In T5

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: In T5, 5.1 you can do something like this. In .tml: ${reportTitle} ... No report to display I believe the "else" syntax may have changed in T5.2. There are now two syntaxes for passing values to parameters that are bl

Re: a simple question

2010-11-11 Thread Richard Hill
: hese <1024h...@gmail.com> Reply-to: "Tapestry users" To: users@tapestry.apache.org Subject: a simple question Date: Wed, 10 Nov 2010 13:24:23 -0800 (PST) Hi, I am using Tapestry 5. I see that in tapestry 4 it was possible to have condition values in the if clause. Is somet

Re: a simple question

2010-11-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Nov 2010 20:56:55 -0200, Howard Lewis Ship wrote: Less expressive, but not less powerful. T5's property expressions are type-safe and non-reflective, with no unwanted synchronization logic, so I'd call that a better than even trade! I stand corrected. :) -- Thiago H. de Paula

Re: a simple question

2010-11-10 Thread ael
YES... tml x needs boolean java boolean x; if(mystring.equals("tapestry")) x = true else x=false Hope you understand the logic. -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259618.html Sent from the Tapestry - User mailing lis

Re: a simple question

2010-11-10 Thread Howard Lewis Ship
On Wed, Nov 10, 2010 at 2:21 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 10 Nov 2010 19:26:18 -0200, hese <1024h...@gmail.com> wrote: > > ...and is it possible to pass parameters into the if evaluating function >> and receive a boolean/string back? >> > > Hi! > > You

Re: a simple question

2010-11-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Nov 2010 19:26:18 -0200, hese <1024h...@gmail.com> wrote: ...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? Hi! You pass a parameter to the If parameter (and any other parameter of any other component) using a binding. Se

Re: a simple question

2010-11-10 Thread hese
ok thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259547.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u

Re: a simple question

2010-11-10 Thread Inge Solvoll
Short answer: No. You have to create a public method in the page class and refer to it. All logic should be in java, not tml. On Wed, Nov 10, 2010 at 10:26 PM, hese <1024h...@gmail.com> wrote: > > > ...and is it possible to pass parameters into the if evaluating function > and > receive a boolea

Re: a simple question

2010-11-10 Thread hese
...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? something like if( foo('somevalue) ) { } else { } -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.html Sent from the Tap

a simple question

2010-11-10 Thread hese
Hi, I am using Tapestry 5. I see that in tapestry 4 it was possible to have condition values in the if clause. Is something like this available in 5? Is it possible to check for a particular string value in the t:if tag or is it just boolean? I want to do something like if(str=='somevalue') {

Re: So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Sam Gendler wrote: Generally, you would make sure the page implements the IExternalPage interface. That allows you to specify parameters in a link and ... --sam Thanks a lot Wojtek -- Wideofelietony Tadeusza Mosza. O biz

Re: So a simple question in place of earlier one...

2007-04-04 Thread Sam Gendler
Generally, you would make sure the page implements the IExternalPage interface. That allows you to specify parameters in a link and receive them when the page is activated. If you just need to generate the URL, you can create an instance of an ILink via the ExternalService and then get the URL f

So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Hi can I obtain full textual (ie. as a String) URL to a page with some parameters? Let's say that I have a page PageBeingCalled with a string property: public class PageBeingCalled extends BasePage { public abstract void setMyProperty(String prop); public abstract String getMyProperty();