General test construct: .java public boolean myTest() { return (thingie != null); }
.tml <t:if test="myTest"> <!-- it's not null --> </t:if> or <t:if test="myTest" negate="true"> <!-- it's null --> </t:if> photos-4 wrote: > >> I notice that t:if coerces number objects (Long, Integer, etc) and >> tests for zero or non-zero. I want to test for null or not null using a >> number data > type. Is there any way to do this? > -- View this message in context: http://www.nabble.com/re--t5-%3A-testing-for-null-number-tp18633966p18635951.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]