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 
<t:if id="notNullNorZero(MyClass)>
</t:if>

and it displays me an error : Coercion from my that object to type
java.lang.Number( via Object --> String, String ---> Double) failed. How to
fix it?





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717255.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

Reply via email to