On Thu, 25 Oct 2012 22:05:20 -0200, o1550762 <o1550...@rtrtr.com> 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
<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?

<t:if test="notNullNorZero(yourProperty.propertyBeingEdited)">

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to