hi,

I've been using Tapestry 5.0 and recently upgraded to T5.1.05, my t:loop
component works fine before that. But I encountered this error everytime i
submit/refresh page

++++++++++
Caused by: java.lang.IllegalArgumentException: Could not find a coercion
from type java.lang.String to type com.wx.pojo.MyProcObj.  Available
coercions: Double --> Float, Float --> Double, Long --> Boolean .... etc
(list is long)
++++++++++


TML file
-------                                 
<t:loop t:source="newProcList" t:value="myProcObj">
    ${myProcObj.names}<br/>
    ${myProcObj.age}
</t:loop>

Java File
--------
@Property
@Persist
private MyProcObj myProcObj;

@Property
@Persist
private List<MyProcObj> newProcList;

@Inject
private MyProcDao myProcDao;

private Object nextPage;

void setupRender(){
    newProcList = myProcDao.getProcList();

    newProcList = newProcList==null?new ArrayList<MyProcObj>():newProcList;
}

Object onSuccess(){
    nextPage = null;
    return nextPage;
}

Previously it works fine, and this problem only occur when i click submit
button, but then i checked through, on submit it didn't do anything but just
refresh the page, thus setupRender fired to get the List value. 

please advice

desperately need guidance,
wesley

-- 
View this message in context: 
http://old.nabble.com/-T5.1.05--Possibly-t%3Aloop-bug--tp26565852p26565852.html
Sent from the Tapestry - User 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