Here is more clarity on the context of the problem...
public Object onActivate(Class clazz, Integer id)
{
if (beanType == null)
return Utils.new404(messages);
this.bean = contextValueEncoder.toValue(beanType, id.toString());
if (bean == null)
return Utils.new404(messages);
beanModel = beanModelSource.createEditModel(beanType, messages);
propertyDescriptor = findPropertyDescriptor(beanType, "photo");
return null;
}
contextValueEncoder is tripping this up...
Best regards
and thanks... KEN
From: [email protected]
To: [email protected]
Subject: NumberFormatException iocservices coercian flip flopping
Date: Tue, 25 Dec 2012 08:12:18 -0500
Not sure if this is a bug...
public Object onActivate(Class clazz, Integer id)
{
I can either specify String or Integer for my edit page id
and somewhere inside the seams... something wants to attempt to coerce a Long
Is tapestry doing something wrong here ?
Thanks
java.lang.NumberFormatExceptionFor input string: "adminlayout"Filter stack
frames
Stack trace
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:410)
java.lang.Long.<init>(Long.java:678)
org.apache.tapestry5.ioc.services.TapestryIOCModule$9.coerce(TapestryIOCModule.java:241)
org.apache.tapestry5.ioc.services.TapestryIOCModule$9.coerce(TapestryIOCModule.java:238)
org.apache.tapestry5.ioc.services.CoercionTuple$CoercionWrapper.coerce(CoercionTuple.java:54)
org.apache.tapestry5.ioc.internal.services.CompoundCoercion.coerce(CompoundCoercion.java:43)