Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

T5: Beaneditform and Date problem

James Sherwood

2008-10-24

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello,



I have an object Celebrity with the fields:



private long id;

private String firstName;

private String lastName;

private Date dateOfBirth;(java.util.Date)



When I use the tag:



<t:beaneditform t:id="celebrity"/>



And access the page I get the console error:



No service implements the interface java.util.Date.



And a Tapestry error:



Render queue error in SetupRender[AddCelebrity:celebrity.editor]: Exception
instantiating instance of com.packtpub.celebrities.model.Celebrity (for
component 'AddCelebrity:celebrity.editor'): Error invoking constructor
com.packtpub.celebrities.model.Celebrity(String, String, Date, Occupation)
(at Celebrity.java:23) (for service 'BeanModelSource'): No service
implements the interface java.util.Date.



Any ideas what I am doing wrong?



Thanks,

--James

©2008 gg3721.com - Jax Systems, LLC, U.S.A.