Well another scary symptom...

When I add Class clazz as the first formal parameter... the custom bindings go 
south


    public Object onActivate(Class clazz, String id)
    {
        if (beanType == null)
            return Utils.new404(messages);


An unexpected application exception has 
occurred.org.apache.tapestry5.internal.services.RenderQueueExceptionRender 
queue error in SetupRender[edit/AdminLayout:beaneditor]: ModelBinding's value 
can't be null!activeComponentsedit/AdminLayout (class 
org.tynamo.examples.hibernatesecurity.pages.edit.AdminLayoutEdit)edit/AdminLayout:layout
 (class org.tynamo.examples.hibernatesecurity.components.Layout)
classpath:org/tynamo/examples/hibernatesecurity/pages/edit/AdminLayoutEdit.tml, 
line 21<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>2<t:layout 
title="title" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"; 
xmlns:p="tapestry:parameter">3            <p:subMenuBlock>4               <ul>5 
                  <ul id="local">6                        </ul>7          
</ul>edit/AdminLayout:form (class org.apache.tapestry5.corelib.components.Form)
classpath:org/tynamo/examples/hibernatesecurity/pages/edit/AdminLayoutEdit.tml, 
line 1712
13      <h1>${title}</h1>14
15      <br/>16
17      <t:form clientValidation="true" validate="bean">

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: NumberFormatException iocservices coercian flip flopping
Date: Tue, 25 Dec 2012 08:15:06 -0500





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: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
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)
                                                                                
                                          

Reply via email to