Re: Q : IF component in tapestry 5 ?

2009-03-18 Thread Andy Pahne
Ulrich Stärk schrieb: The test will be true if the provided test returns true or in case of an object return type that object is not null. Or a collection which is not empty. What about arrays? True, if array is not null, true, if array.size 0? I am not sure...

Re: Q : IF component in tapestry 5 ?

2009-03-15 Thread dwi ardi irawan
thnx u. it works now -- http://www.dwiardiirawan.com cos everyone could be extraordinary...lighten up !

Q : IF component in tapestry 5 ?

2009-03-14 Thread dwi ardi irawan
guys, i'm so stress with if komponent. how to use it here's my code .tml === t:select t:id=chartType onchange=this.form.submit()/ t:if test=dailyChart AAA /t:if t:if test=monthlyChart BBB /t:if t:if test=yearlyChart CCC

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Alex Kotchnev
w/o looking at the docs, my impression is that the 'test' attribute of t:if expects a boolean value. Neither of daily,monthly,and yearly chart props are boolean. On 3/14/09, dwi ardi irawan penyihirke...@gmail.com wrote: guys, i'm so stress with if komponent. how to use it here's my code

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Ulrich Stärk
The test will be true if the provided test returns true or in case of an object return type that object is not null. Uli Alex Kotchnev schrieb: w/o looking at the docs, my impression is that the 'test' attribute of t:if expects a boolean value. Neither of daily,monthly,and yearly chart props

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Luther Baker
I believe that setting your chart type Strings in a SUBMIT event handler without persisting them - effectively does nothing for you. They will be reset to null before the successive page sees them. Unless you set your chart type in a PRE event of the successive page (onActivate ...) - I believe