On Fri, 26 Oct 2012 11:17:21 -0200, o1550762 wrote:
OK, how to do that? To make some function of type BeanModel with
parameters of an Object, and inside it to write if function that if that
object holds 0 or null value( by getField() function) to add to the bean
model that
field(property)
mind?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717291.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To
On Thu, 25 Oct 2012 22:31:17 -0200, o1550762 wrote:
Yes, I understand that, but could I go through the class( all of it's
properties ), not through one single property?
Have you tried the BeanEditor component?
--
Thiago H. de Paula Figueiredo
I could pass Number ... n but because I have so many vars, I am not sure if
that's the best way of handling it.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717260.html
Sent from the Tapestry -
Yes, I understand that, but could I go through the class( all of it's
properties ), not through one single property?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717258.html
Sent from the Tapestry -
On Thu, 25 Oct 2012 22:05:20 -0200, o1550762 wrote:
OK, I have made following for my class public static boolean
notNullNorZero(Number n){
return n == null || n.intValue() == 0;
}
and called it in my tml file
--
Thiago H. de Paula Figueiredo
OK, I have made following for my class public static boolean
notNullNorZero(Number n){
return n == null || n.intValue() == 0;
}
and called it in my tml file
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717255.html
Sent from the Tapestry
On Wed, 24 Oct 2012 23:56:53 -0200, o1550762 wrote:
Thank you mr. Thiago on your reply. How could I do this with objects?
The same way.
For example if I have object and 4 parameters in it, I want to show only
parameters that are not set to 0, but if are set other than that to show
them? Is
.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717210.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For
On Wed, 24 Oct 2012 10:23:54 -0200, o1550762 wrote:
Hi Thiago! Could you please give me some directions or part of the code
so that I can start it. I was thinking to implement javascript code
something like if (element.find("div" === null)) return; but then I am
not sure if it will render
e field on
purpose in creating an object Number, it should not be render when showing
that object to the client.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717201.html
Sent from the Tapestry - User ma
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.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-tp5717193.html
Sent from the Tapestry
advance.
--
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
13 matches
Mail list logo