So I have this:
<t:if test="obj">.... </if>

obj being null results in false just fine. But doing "obj = new Object()"
makes it explode. Oddly enough, "obj = new Integer(1)" (and presumably any
other subclass of Object), works just fine.


An unexpected application exception has occurred.
Render queue error in BeginRender[Page:layout.if_9]: Failure reading
parameter 'test' of component Page:layout.if_9: Could not find a coercion
from type java.lang.Object to type java.lang.Boolean. Available coercions:
Double --> Float, Float --> Double, Long --> Boolean, Long --> Byte, Long
--> Double, Long --> Integer, Long --> Short, Number --> Long, Object -->
Object[], Object --> String, Object --> java.util.List, Object[] -->
java.util.List, String --> Boolean, String --> Double, String --> Long,
String --> java.io.File, String --> java.math.BigDecimal, String -->
java.math.BigInteger, String --> java.text.DateFormat, String -->
java.util.regex.Pattern, String --> org.apache.tapestry5.Renderable, String
--> org.apache.tapestry5.SelectModel, String -->
org.apache.tapestry5.corelib.LoopFormState, String -->
org.apache.tapestry5.corelib.data.BlankOption, String -->
org.apache.tapestry5.corelib.data.GridPagerPosition, String -->
org.apache.tapestry5.corelib.data.InsertPosition, String -->
org.apache.tapestry5.ioc.Resource, String -->
org.apache.tapestry5.ioc.util.TimeInterval, boolean[] --> java.util.List,
byte[] --> java.util.List, char[] --> java.util.List, double[] -->
java.util.List, float[] --> java.util.List, int[] --> java.util.List,
java.math.BigDecimal --> Double, java.util.Collection --> Boolean,
java.util.Collection --> Object[], java.util.Collection -->
org.apache.tapestry5.grid.GridDataSource, java.util.List -->
org.apache.tapestry5.SelectModel, java.util.Map -->
org.apache.tapestry5.SelectModel, long[] --> java.util.List, null -->
Boolean, null --> org.apache.tapestry5.grid.GridDataSource,
org.apache.tapestry5.ComponentResources -->
org.apache.tapestry5.PropertyOverrides,
org.apache.tapestry5.PrimaryKeyEncoder -->
org.apache.tapestry5.ValueEncoder, org.apache.tapestry5.Renderable -->
org.apache.tapestry5.Block, org.apache.tapestry5.Renderable -->
org.apache.tapestry5.runtime.RenderCommand,
org.apache.tapestry5.ioc.util.TimeInterval --> Long,
org.apache.tapestry5.runtime.ComponentResourcesAware -->
org.apache.tapestry5.ComponentResources, short[] --> java.util.List.
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/If-test-doesn-t-like-testing-a-java-lang-Object-for-not-null-tp5477845p5477845.html
Sent from the Tapestry Users 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