You could use a provide a Translator (translate parameter) to do that.
On Tue, 23 Oct 2012 21:24:08 -0200, o1550762 <o1550...@rtrtr.com> wrote:
Hi,
Lets say I have one component and in it following
// Numbers.java
@Property
@Parameter
private double number1;
@Property
@Parameter
private double number2;
@Property
@Parameter
private double number3;
//Number.tml
<t:label for="number1"/> <t:textfield t:id="number1" size="3"/>
<t:label for="number2"/> <t:textfield t:id="number2" size="3"/>
<t:label for="number3"/> <t:textfield t:id="number3" size="3"/>
Now what I want here is for my component to render only values that are
not
null or 0. I was thinking to implement some sort of if method in which I
will call object Number( which will contain all three numbers, and going
one
by one by search and excluding if one is 0 or null. I would like your
opinion about it, ie is there any more simply way to do that. Thanks in
advance.
<t:label for="number1"/> <t:textfield t:id="number1" size="3"/>
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-tp5717193.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
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org